Skip to content

Commit 7f97149

Browse files
committed
feat(no-confusing-arrow): allow parens
1 parent dcad759 commit 7f97149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ module.exports = {
252252
'constructor-super': 2, // require `super()` calls in constructors
253253
'generator-star-spacing': 1, // enforce consistent spacing around `*` operators in generator functions
254254
'no-class-assign': 1, // disallow reassigning class members
255-
'no-confusing-arrow': 1, // disallow arrow functions where they could be confused with comparisons
255+
'no-confusing-arrow': [1, {allowParens: true}], // disallow arrow functions where they could be confused with comparisons
256256
'no-const-assign': 2, // disallow reassigning `const` variables
257257
'no-dupe-class-members': 0, // disallow duplicate class members
258258
'no-duplicate-imports': 1, // disallow duplicate module imports

0 commit comments

Comments
 (0)