X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.json;h=ddb47174049aff56a7589146429e75c4e1660902;hb=94327d938c08c347d44ea685e38cb05ff9c3e548;hp=fe42d4cb1f2f15c4e3586db6f1e6606664dae835;hpb=0f113d68a22dd919877279d32d8d12058ec06cee;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index fe42d4cb..ddb47174 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" } } }, @@ -90,7 +90,7 @@ "no-var": "error", "prefer-const": "error", "sort-imports": [ - "warn", + "error", { "ignoreCase": false, "ignoreDeclarationSort": true, @@ -99,7 +99,6 @@ "allowSeparatedGroups": true } ], - "import/no-unresolved": "error", "import/order": [ "error", { @@ -142,13 +141,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": {