From 24a3a6403677616dcb2d03ebbaaf33f63d18004d Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Wed, 20 Sep 2023 16:52:12 +0100 Subject: [PATCH] Avoid conflict: mixed-operators / extra-parens The documentation for 'no-mixed-operators' states: > This rule may conflict with no-extra-parens rule. If you use both this and > no-extra-parens rule together, you need to use the nestedBinaryExpressions > option of no-extra-parens rule. --- eslint/.eslintrc-magento | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint/.eslintrc-magento b/eslint/.eslintrc-magento index cb935aee..7d35e359 100644 --- a/eslint/.eslintrc-magento +++ b/eslint/.eslintrc-magento @@ -75,7 +75,7 @@ "no-extend-native": 2, "no-extra-bind": 2, "no-extra-boolean-cast": 2, - "no-extra-parens": 2, + "no-extra-parens": [2, "all", { "nestedBinaryExpressions": false }], "no-extra-semi": 2, "no-fallthrough": 2, "no-floating-decimal": 2,