Skip to content

Commit 3d5daff

Browse files
committed
fix(react): allow arrow functions in JSX
1 parent 6bfda66 commit 3d5daff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rules/react.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ module.exports = {
44
'react/no-danger': ['off'],
55
'react/display-name': ['off'],
66
'react/jsx-key': ['error'],
7-
'react/jsx-no-bind': ['error'],
7+
'react/jsx-no-bind': [
8+
'error',
9+
{
10+
allowArrowFunctions: true,
11+
},
12+
],
813
},
914
};

0 commit comments

Comments
 (0)