1
0
forked from mirrors/0ad

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 <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-06-14 15:36:24 +02:00
parent 782443c543
commit 2f54155219
-5
View File
@@ -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",
}
};