1
0
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:
phosit
2025-07-27 14:40:15 +02:00
committed by Phosit
parent 27a0c22a23
commit 582541ea80
27 changed files with 165 additions and 185 deletions
+1
View File
@@ -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",