X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.json;h=408af99eb97b27a0ed461f02b49e44277c176e27;hb=a78c196b969380d9d968c94fab567b0be6828f69;hp=fe42d4cb1f2f15c4e3586db6f1e6606664dae835;hpb=0f113d68a22dd919877279d32d8d12058ec06cee;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index fe42d4cb..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, @@ -14,7 +14,7 @@ "settings": { "import/resolver": { "typescript": { - "project": "./tsconfig-base.json" + "project": "./tsconfig.json" } } }, @@ -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-base.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": {