mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 04:38:00 -05:00
[eslint config] [base] [breaking] enable no-mixed-operators rule.
Specifically, this is to require parens to avoid cognitive overhead about precedence.
This commit is contained in:
@@ -138,8 +138,7 @@ module.exports = {
|
||||
|
||||
// disallow un-paren'd mixes of different operators
|
||||
// http://eslint.org/docs/rules/no-mixed-operators
|
||||
// TODO: enable
|
||||
'no-mixed-operators': [0, {
|
||||
'no-mixed-operators': [2, {
|
||||
groups: [
|
||||
['+', '-', '*', '/', '%', '**'],
|
||||
['&', '|', '^', '~', '<<', '>>', '>>>'],
|
||||
|
||||
Reference in New Issue
Block a user