Skip to content

Commit

Permalink
Avoid conflict: mixed-operators / extra-parens
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fredden committed Sep 20, 2023
1 parent 7a185a1 commit 92a21dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint/.eslintrc-magento
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 92a21dc

Please sign in to comment.