build(simulator): switch to strict type checking
[e-mobility-charging-stations-simulator.git] / .eslintrc.json
index 7a97530eabb666a32ea881005f24e4987537c198..2b20e8ddd73ad7fcd2b093ca2d138550bcb0e12e 100644 (file)
@@ -15,7 +15,7 @@
   "settings": {
     "import/resolver": {
       "typescript": {
-        "project": "./tsconfig-base.json"
+        "project": "./tsconfig.json"
       }
     }
   },
@@ -91,7 +91,7 @@
     "no-var": "error",
     "prefer-const": "error",
     "sort-imports": [
-      "warn",
+      "error",
       {
         "ignoreCase": false,
         "ignoreDeclarationSort": true,
         "allowSeparatedGroups": true
       }
     ],
-    "import/no-unresolved": "error",
     "import/order": [
       "error",
       {
       "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": {