Merge pull request #207 from jerome-benoit/fix-response-pending
[e-mobility-charging-stations-simulator.git] / .eslintrc
index 409a11b2bb901464f2b28fbf46d026daef3c571a..4773a806ae1c15dbd0c4eaac2400a4b71d6b2bc5 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,5 +1,14 @@
 {
   "root": true,
+  "env": {
+    "es2020": true,
+    "node": true,
+    "mocha": true
+  },
+  "parserOptions": {
+    "ecmaVersion": 2020,
+    "sourceType": "module"
+  },
   "extends": [
     "eslint:recommended",
     "plugin:import/errors",
@@ -20,7 +29,6 @@
     "eqeqeq": ["error", "always"],
     "no-else-return": "error",
     "no-eq-null": "error",
-    "no-undefined": "error",
     "no-extra-bind": "error",
     "no-lone-blocks": "error",
     "no-multi-spaces": "error",
       "files": ["**/*.ts"],
       "parser": "@typescript-eslint/parser",
       "parserOptions": {
+        "ecmaVersion": 2020,
+        "sourceType": "module",
         "project": "./tsconfig.json"
       },
       "extends": [