Skip to content

Commit

Permalink
[Fix] re-enable no-confusing-arrow rule, with allowParens option …
Browse files Browse the repository at this point in the history
…enabled.

Per #752, fixes #791.
  • Loading branch information
ljharb committed Mar 21, 2016
1 parent 9eb24d6 commit 5ded256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/eslint-config-airbnb/rules/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ module.exports = {
'no-class-assign': 0,
// disallow arrow functions where they could be confused with comparisons
// http://eslint.org/docs/rules/no-confusing-arrow
'no-confusing-arrow': 0,
'no-confusing-arrow': [2, {
'allowParens': true,
}],
// disallow modifying variables that are declared using const
'no-const-assign': 2,
// disallow symbol constructor
Expand Down

0 comments on commit 5ded256

Please sign in to comment.