X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.json;h=408af99eb97b27a0ed461f02b49e44277c176e27;hb=e0d3c3592f990eadb77780b324ceaa105ba44dfa;hp=f61fc080bd45c62d528d2947c4009d9942ca0ed9;hpb=c5f2c258852408a3b18c7a5b12d076b6b5728172;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index f61fc080..408af99e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,9 @@ { + "$schema": "https://json.schemastore.org/eslintrc", "root": true, "env": { "es2022": true, - "node": true, - "mocha": true + "node": true }, "parserOptions": { "ecmaVersion": 2022, @@ -23,9 +23,7 @@ "space-before-blocks": ["error", "always"], "curly": ["error", "all"], "brace-style": "error", - "eqeqeq": ["error", "always"], "no-else-return": "error", - "no-eq-null": "error", "no-extra-bind": "error", "no-lone-blocks": "error", "no-multi-spaces": "error", @@ -41,14 +39,6 @@ } ], "block-spacing": "error", - // "capitalized-comments": [ - // "error", - // "always", - // { - // "ignoreConsecutiveComments": true, - // "ignorePattern": "pragma|ignored" - // } - // ], "eol-last": ["error", "always"], "consistent-this": ["error", "self"], "func-call-spacing": ["error", "never"], @@ -90,7 +80,7 @@ "no-var": "error", "prefer-const": "error", "sort-imports": [ - "warn", + "error", { "ignoreCase": false, "ignoreDeclarationSort": true, @@ -99,7 +89,6 @@ "allowSeparatedGroups": true } ], - "import/no-unresolved": "error", "import/order": [ "error", { @@ -142,13 +131,13 @@ "files": ["**/*.ts"], "parser": "@typescript-eslint/parser", "parserOptions": { - "project": "./tsconfig.json" + "project": true, + "tsconfigRootDir": "./" }, "plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"], "extends": [ - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:@typescript-eslint/recommended-type-checked", + "plugin:@typescript-eslint/stylistic-type-checked", "plugin:import/typescript" ], "rules": { @@ -167,7 +156,7 @@ } }, { - "files": ["**/*.js"], + "files": ["**/*.js", "**/*.cjs", "**/*.mjs"], "plugins": ["jsdoc"], "extends": ["plugin:jsdoc/recommended", "plugin:n/recommended"], "rules": {