X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc;h=a32321444c505a03c36a257ae7ed49c49eefe4de;hb=bf45eb680705907ff1cbb22a7ab94f39dd000213;hp=86140678e7f404504d93b8d53045f09e6fe632e5;hpb=31eab5232bec33013b8192bed39b98d7013242c9;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc b/.eslintrc index 86140678..a3232144 100644 --- a/.eslintrc +++ b/.eslintrc @@ -29,7 +29,13 @@ "error", 2, { - "SwitchCase": 1 + "SwitchCase": 1, + "FunctionDeclaration": { + "parameters": 2 + }, + "FunctionExpression": { + "parameters": 2 + } } ], "@typescript-eslint/array-type": "off", @@ -75,7 +81,8 @@ ], "no-useless-catch": "error", "no-useless-return": "error", - "no-shadow": "error", + "no-shadow": "off", // This one is generating false positive no-shadow errors on exported/const enums + "@typescript-eslint/no-shadow": "error", "no-multiple-empty-lines": [ "error", { @@ -107,6 +114,20 @@ "keyword-spacing": [ "error" ], + "id-blacklist": [ + "error", + "any", + "Number", + "number", + "String", + "string", + "Boolean", + "boolean", + "Undefined", + "undefined", + "Symbol", + "symbol" + ], "linebreak-style": [ "error", "unix"