X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc;h=96ad1d130576553ee12baf3614993f850fb908e5;hb=07f350040f34e6727c548bc645e9982c189cd4ef;hp=05faff1669a1ba343722af3fbe60fc24752950af;hpb=04cb0ea4a39037250fde23e6c69ecb96a70d11e0;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc b/.eslintrc index 05faff16..96ad1d13 100644 --- a/.eslintrc +++ b/.eslintrc @@ -81,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", { @@ -113,6 +114,20 @@ "keyword-spacing": [ "error" ], + "id-blacklist": [ + "error", + "any", + "Number", + "number", + "String", + "string", + "Boolean", + "boolean", + "Undefined", + "undefined", + "Symbol", + "symbol" + ], "linebreak-style": [ "error", "unix" @@ -192,5 +207,18 @@ "error", "single" ] - } + }, + "overrides": [ + { + "files": [ + "*.js" + ], + "extends": "plugin:node/recommended", + "rules": { + "node/shebang" : "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-var-requires": "off" + } + } + ] }