From 8df4dee38cbfe90bb0a6eeef94fbd865d783ce17 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 21 May 2025 17:03:40 +0200 Subject: [PATCH] lib: remove no-mixed-operators eslint rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rule often makes code less readable by requiring the additional brackets. PR-URL: https://github.com/nodejs/node/pull/58375 Refs: https://eslint.org/docs/latest/rules/no-mixed-operators Reviewed-By: Yagiz Nizipli Reviewed-By: Michaƫl Zasso --- lib/eslint.config_partial.mjs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/eslint.config_partial.mjs b/lib/eslint.config_partial.mjs index c4df9b191d8..6392d515e94 100644 --- a/lib/eslint.config_partial.mjs +++ b/lib/eslint.config_partial.mjs @@ -370,16 +370,6 @@ export default [ }, ], - // Stylistic rules. - '@stylistic/js/no-mixed-operators': [ - 'error', - { - groups: [ - ['&&', '||'], - ], - }, - ], - // Custom rules in tools/eslint-rules. 'node-core/alphabetize-errors': 'error', 'node-core/alphabetize-primordials': 'error',