build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / .eslintrc.json
index 60c8eb08c41dc9771896a386df99d40336ac3d09..408af99eb97b27a0ed461f02b49e44277c176e27 100644 (file)
@@ -3,8 +3,7 @@
   "root": true,
   "env": {
     "es2022": true,
-    "node": true,
-    "mocha": true
+    "node": true
   },
   "parserOptions": {
     "ecmaVersion": 2022,
@@ -24,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",
       }
     ],
     "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"],
       "files": ["**/*.ts"],
       "parser": "@typescript-eslint/parser",
       "parserOptions": {
-        "project": "./tsconfig.json"
+        "project": true,
+        "tsconfigRootDir": "./"
       },
       "plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
       "extends": [
-        "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": {