diff --git a/.eslintrc.json b/.eslintrc.json index 1e050ab6f..bf4b7000b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,11 +25,7 @@ "plugin:json/recommended", "plugin:import/recommended", "plugin:import/typescript", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier", - // "plugin:@typescript-eslint/recommended-requiring-type-checking" - "plugin:@typescript-eslint/strict" + "prettier" ], "plugins": ["json", "require-path-exists", "@typescript-eslint"], "rules": { @@ -60,11 +56,16 @@ { // enable the rule specifically for TypeScript files "files": ["*.ts", "*.tsx"], + "extends": [ + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/strict" + // "plugin:@typescript-eslint/recommended-requiring-type-checking" + ], "rules": { "@typescript-eslint/explicit-function-return-type": ["error"], "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-function": "warn", - "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^(_|e|event)", "varsIgnorePattern": "^_" } @@ -92,7 +93,7 @@ "parserOptions": { "ecmaVersion": 12, "sourceType": "module", - "project": ["**/tsconfig.json"] + "project": "**/tsconfig.json" } }, {