forked from mirrors/0ad
Enable eslint rule 'no-useless-assignment'
Enable rule 'no-useless-assignment' [1] and fix violations. [1] https://eslint.org/docs/latest/rules/no-useless-assignment
This commit is contained in:
@@ -109,6 +109,7 @@ const configEslintExtra = {
|
||||
"no-unneeded-ternary": "warn",
|
||||
"no-unused-expressions": "warn",
|
||||
"no-use-before-define": ["error", "nofunc"],
|
||||
"no-useless-assignment": "warn",
|
||||
"operator-assignment": "warn",
|
||||
"prefer-const": "warn",
|
||||
"yoda": "warn",
|
||||
|
||||
Reference in New Issue
Block a user