X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc;h=a32321444c505a03c36a257ae7ed49c49eefe4de;hb=2bbddc367e37d0d163ee0e22f63c7093bb3aa0cd;hp=f44ad63d64f4b97fb1c47dd26ac273bd3a60c1ed;hpb=6af9012e5b9ef2ed6f4fe8a9696b40ac0e8da4d0;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc b/.eslintrc index f44ad63d..a3232144 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,18 +7,35 @@ "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking" + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:import/typescript", + "plugin:jsdoc/recommended" ], "plugins": [ + "import", + "jsdoc", "@typescript-eslint" ], + "settings": { + "jsdoc": { + "mode": "typescript" + } + }, "rules": { "indent": "off", "@typescript-eslint/indent": [ "error", 2, { - "SwitchCase": 1 + "SwitchCase": 1, + "FunctionDeclaration": { + "parameters": 2 + }, + "FunctionExpression": { + "parameters": 2 + } } ], "@typescript-eslint/array-type": "off", @@ -64,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", { @@ -73,14 +91,14 @@ } ], "block-spacing": "error", - "capitalized-comments": [ - "error", - "always", - { - "ignoreConsecutiveComments": true, - "ignorePattern": "pragma|ignored" - } - ], + // "capitalized-comments": [ + // "error", + // "always", + // { + // "ignoreConsecutiveComments": true, + // "ignorePattern": "pragma|ignored" + // } + // ], "eol-last": [ "error", "always" @@ -96,6 +114,20 @@ "keyword-spacing": [ "error" ], + "id-blacklist": [ + "error", + "any", + "Number", + "number", + "String", + "string", + "Boolean", + "boolean", + "Undefined", + "undefined", + "Symbol", + "symbol" + ], "linebreak-style": [ "error", "unix"