Skip to content

Commit b36f21d

Browse files
committed
add react/jsx-no-bind
1 parent 5fcd03f commit b36f21d

File tree

1 file changed

+2
-0
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module.exports = {
2727
'react/jsx-indent-props': [2, 2],
2828
// Limit maximum of props on a single line in JSX
2929
'react/jsx-max-props-per-line': 0,
30+
// Prevent usage of .bind() and arrow functions in JSX props
31+
'react/jsx-no-bind': 0,
3032
// Prevent duplicate props in JSX
3133
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
3234
'react/jsx-no-duplicate-props': 0,

0 commit comments

Comments
 (0)