From 2f54155219046c5044d2b98bfdb3dbef37934e30 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 14 Jun 2025 15:36:24 +0200 Subject: [PATCH] Don't list disabled rules in eslint extra Disabled rules are the same as not listed rules of which there are many, keep them out of the config. Signed-off-by: Ralph Sennhauser --- eslint.config.mjs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 7eedb5718a..f89980cf68 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -54,16 +54,13 @@ const configEslintRecommended = { const configEslintExtra = { "rules": { - "block-scoped-var": "off", "consistent-return": "warn", "default-case": "warn", "dot-notation": "warn", - "new-cap": "off", "no-caller": "warn", "no-else-return": "warn", "no-invalid-this": "warn", "no-label-var": "warn", - "no-loop-func": "off", "no-multi-assign": "warn", "no-new": "warn", "no-return-assign": "warn", @@ -74,10 +71,8 @@ const configEslintExtra = { "no-unneeded-ternary": "warn", "no-unused-expressions": "warn", "no-use-before-define": ["error", "nofunc"], - "no-useless-concat": "off", "operator-assignment": "warn", "prefer-const": "warn", - "valid-jsdoc": "off", "yoda": "warn", } };