X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.json;h=f61fc080bd45c62d528d2947c4009d9942ca0ed9;hb=f64ca10c3dfd40e1deda5aa7cf3397305575117e;hp=8b10dc67bc7b4f510e918775b1fe6fdbbc3c23e2;hpb=8475b2228f0b36777e1a9528b2d61348facad82f;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc.json b/.eslintrc.json index 8b10dc67..f61fc080 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,12 +1,12 @@ { "root": true, "env": { - "es2020": true, + "es2022": true, "node": true, "mocha": true }, "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2022, "sourceType": "module" }, "plugins": ["import"], @@ -84,8 +84,7 @@ "space-unary-ops": "error", "spaced-comment": ["error", "always"], "switch-colon-spacing": "error", - "arrow-body-style": ["error", "as-needed"], - "arrow-parens": ["error", "as-needed"], + "arrow-parens": ["error", "always"], "arrow-spacing": "error", "no-duplicate-imports": "error", "no-var": "error",