Skip to content

Commit

Permalink
Breaking: no-confusing-arrow enable allowParens: true by default (fix…
Browse files Browse the repository at this point in the history
…es#11503)
  • Loading branch information
aladdin-add committed Mar 17, 2019
1 parent 06fa165 commit b70022c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rules/no-confusing-arrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This rule accepts a single options argument with the following defaults:
}
```

`allowParens` is a boolean setting that can be `true` or `false`:
`allowParens` is a boolean setting that can be `true`(default) or `false`:

1. `true` relaxes the rule and accepts parenthesis as a valid "confusion-preventing" syntax.
2. `false` warns even if the expression is wrapped in parenthesis
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-confusing-arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
schema: [{
type: "object",
properties: {
allowParens: { type: "boolean", default: false }
allowParens: { type: "boolean", default: true }
},
additionalProperties: false
}],
Expand Down

0 comments on commit b70022c

Please sign in to comment.