mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 16:37:54 -05:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user