Skip to content

Commit 92a21dc

Browse files
committed
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.
1 parent 7a185a1 commit 92a21dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint/.eslintrc-magento

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"no-extend-native": 2,
7676
"no-extra-bind": 2,
7777
"no-extra-boolean-cast": 2,
78-
"no-extra-parens": 2,
78+
"no-extra-parens": [2, "all", { "nestedBinaryExpressions": false }],
7979
"no-extra-semi": 2,
8080
"no-fallthrough": 2,
8181
"no-floating-decimal": 2,

0 commit comments

Comments
 (0)