Skip to content

Commit ee2cb41

Browse files
committed
[eslint config] [base] [breaking] enable no-mixed-operators rule.
Specifically, this is to require parens to avoid cognitive overhead about precedence.
1 parent 6980cce commit ee2cb41

File tree

1 file changed

+1
-2
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+1
-2
lines changed

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ module.exports = {
138138

139139
// disallow un-paren'd mixes of different operators
140140
// http://eslint.org/docs/rules/no-mixed-operators
141-
// TODO: enable
142-
'no-mixed-operators': [0, {
141+
'no-mixed-operators': [2, {
143142
groups: [
144143
['+', '-', '*', '/', '%', '**'],
145144
['&', '|', '^', '~', '<<', '>>', '>>>'],

0 commit comments

Comments
 (0)