From 92a21dc58469027d8e5af72645d3752988409940 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 858b44bc..9ab8470f 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,