[eslint config] [base] [breaking] widen no-extra-parens to include everything, except nestedBinaryExpressions

Per https://github.com/eslint/eslint/issues/3065#event-626005438
This commit is contained in:
Jordan Harband
2016-05-04 16:52:06 -07:00
parent 6eec3a6df7
commit fd5c71c0a9

View File

@@ -25,7 +25,11 @@ module.exports = {
// disallow double-negation boolean casts in a boolean context
'no-extra-boolean-cast': 0,
// disallow unnecessary parentheses
'no-extra-parens': [2, 'functions'],
// http://eslint.org/docs/rules/no-extra-parens
'no-extra-parens': [2, 'all', {
'conditionalAssign': true,
'nestedBinaryExpressions': false,
}],
// disallow unnecessary semicolons
'no-extra-semi': 2,
// disallow overwriting functions written as function declarations