From 086e8ec09d53bf520a0d53ef10a472a8a1202358 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Thu, 12 Jun 2025 18:41:43 +0200 Subject: [PATCH] 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 --- eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 833f6901c0..2204eda9a9 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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"],