Skip to content

Commit 5ded256

Browse files
committed
[Fix] re-enable no-confusing-arrow rule, with allowParens option enabled.
Per #752, fixes #791.
1 parent 9eb24d6 commit 5ded256

File tree

1 file changed

+3
-1
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+3
-1
lines changed

packages/eslint-config-airbnb/rules/es6.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ module.exports = {
3030
'no-class-assign': 0,
3131
// disallow arrow functions where they could be confused with comparisons
3232
// http://eslint.org/docs/rules/no-confusing-arrow
33-
'no-confusing-arrow': 0,
33+
'no-confusing-arrow': [2, {
34+
'allowParens': true,
35+
}],
3436
// disallow modifying variables that are declared using const
3537
'no-const-assign': 2,
3638
// disallow symbol constructor

0 commit comments

Comments
 (0)