X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.json;h=ef726dc74bd594c4a3658dd62c47438ec021aaff;hb=810f4caf2bf0b12d5c429d1d21af62b1fe67f965;hp=b9b190f5146555b6aaf54eafe21321b8b8c128c1;hpb=72092cfcf8a31c06e4592b25e060e2d74d2ed99c;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index b9b190f5..ef726dc7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,12 +1,13 @@ { + "$schema": "https://json.schemastore.org/eslintrc", "root": true, "env": { - "es2020": true, + "es2022": true, "node": true, "mocha": true }, "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2022, "sourceType": "module" }, "plugins": ["import"], @@ -90,7 +91,7 @@ "no-var": "error", "prefer-const": "error", "sort-imports": [ - "warn", + "error", { "ignoreCase": false, "ignoreDeclarationSort": true, @@ -99,7 +100,6 @@ "allowSeparatedGroups": true } ], - "import/no-unresolved": "error", "import/order": [ "error", { @@ -167,7 +167,7 @@ } }, { - "files": ["**/*.js"], + "files": ["**/*.js", "**/*.cjs", "**/*.mjs"], "plugins": ["jsdoc"], "extends": ["plugin:jsdoc/recommended", "plugin:n/recommended"], "rules": {