diff options
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index acc5305f4..c3e588250 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,13 +1,26 @@ module.exports = { root: true, - parser: '@typescript-eslint/parser', - plugins: [ - '@typescript-eslint', - ], + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint"], extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react/recommended", ], - rules: {}, + rules: { + "no-constant-condition": ["error", { "checkLoops": false }], + "prefer-const": ["warn", { destructuring: "all" }], + "@typescript-eslint/camelcase": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": ["warn", { args: "none" }], + "@typescript-eslint/explicit-function-return-type": [ + "warn", + { allowExpressions: true }, + ], + "@typescript-eslint/no-use-before-define": [ + "error", + { functions: false, classes: false }, + ], + }, }; |