mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Replace deprecated eslint rule 'no-negated-in-lhs'
The rule 'no-negated-in-lhs' was deprecated in eslint 3 [1], replace it according to recommendation with 'no-unsafe-negation' and enable all extras as our code already conforms. [1] https://eslint.org/docs/latest/rules/no-negated-in-lhs.html Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
638c04987e
commit
086e8ec09d
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ const configEslintBase = {
|
|||
"no-empty": 1,
|
||||
"no-extra-boolean-cast": 0,
|
||||
"no-func-assign": 1,
|
||||
"no-negated-in-lhs": 1,
|
||||
"no-unsafe-negation": ["warn", { "enforceForOrderingRelations": true }],
|
||||
"no-obj-calls": 1,
|
||||
"no-unreachable": 1,
|
||||
"no-use-before-define": ["error", "nofunc"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue