[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:
Jordan Harband
2016-06-20 15:52:05 -07:00
parent 6980cce17f
commit ee2cb41ec4

View File

@@ -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: [
['+', '-', '*', '/', '%', '**'],
['&', '|', '^', '~', '<<', '>>', '>>>'],