X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.json;h=fe42d4cb1f2f15c4e3586db6f1e6606664dae835;hb=0a376442c47f8e1c89cff78e822a936f3d4c783a;hp=27d9f65b987d51ed54c8de4c94c58c633655ffdd;hpb=0e4fa348298d36900560f7466f21f44090d2fe1b;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index 27d9f65b..fe42d4cb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,12 +1,12 @@ { "root": true, "env": { - "es2020": true, + "es2022": true, "node": true, "mocha": true }, "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2022, "sourceType": "module" }, "plugins": ["import"], @@ -14,7 +14,7 @@ "settings": { "import/resolver": { "typescript": { - "project": "./tsconfig.json" + "project": "./tsconfig-base.json" } } }, @@ -84,7 +84,6 @@ "space-unary-ops": "error", "spaced-comment": ["error", "always"], "switch-colon-spacing": "error", - "arrow-body-style": ["error", "as-needed"], "arrow-parens": ["error", "always"], "arrow-spacing": "error", "no-duplicate-imports": "error", @@ -143,7 +142,7 @@ "files": ["**/*.ts"], "parser": "@typescript-eslint/parser", "parserOptions": { - "project": "./tsconfig.json" + "project": "./tsconfig-base.json" }, "plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"], "extends": [ @@ -168,7 +167,7 @@ } }, { - "files": ["**/*.js"], + "files": ["**/*.js", "**/*.cjs", "**/*.mjs"], "plugins": ["jsdoc"], "extends": ["plugin:jsdoc/recommended", "plugin:n/recommended"], "rules": {