forked from mirrors/0ad
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:
+1
-1
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user