X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc;h=2153335c5ebfd5164e4f1b88eded5fc72bd0ff11;hb=672fed6e70e94e37ba8db689d8517f42ae0f4477;hp=76157df08296c886588bca430d808b32729d7a1f;hpb=4592b693549f0575577c96edb25b0bc587eb2da1;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc b/.eslintrc index 76157df0..2153335c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,11 +8,15 @@ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:import/typescript", "plugin:jsdoc/recommended" ], "plugins": [ - "@typescript-eslint", - "jsdoc" + "import", + "jsdoc", + "@typescript-eslint" ], "settings": { "jsdoc": { @@ -25,7 +29,18 @@ "error", 2, { - "SwitchCase": 1 + "SwitchCase": 1, + "CallExpression": { + "arguments": 1 + }, + "FunctionDeclaration": { + "parameters": 2, + "body": 1 + }, + "FunctionExpression": { + "parameters": 2, + "body": 1 + } } ], "@typescript-eslint/array-type": "off", @@ -71,7 +86,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", { @@ -103,6 +119,20 @@ "keyword-spacing": [ "error" ], + "id-blacklist": [ + "error", + "any", + "Number", + "number", + "String", + "string", + "Boolean", + "boolean", + "Undefined", + "undefined", + "Symbol", + "symbol" + ], "linebreak-style": [ "error", "unix" @@ -182,5 +212,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" + } + } + ] }