diff --git a/packages/eslint-config-airbnb-base/rules/errors.js b/packages/eslint-config-airbnb-base/rules/errors.js index 73fd7d4f..f8f38972 100644 --- a/packages/eslint-config-airbnb-base/rules/errors.js +++ b/packages/eslint-config-airbnb-base/rules/errors.js @@ -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