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:
Ralph Sennhauser 2025-06-12 18:41:43 +02:00
parent 638c04987e
commit 086e8ec09d
No known key found for this signature in database

View file

@ -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"],