Skip to content

Commit 34f64c2

Browse files
committed
Add defaults for react/jsx-no-bind
1 parent e7f5e0f commit 34f64c2

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ module.exports = {
4040
'react/jsx-max-props-per-line': [0, { 'maximum': 1 }],
4141
// Prevent usage of .bind() and arrow functions in JSX props
4242
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
43-
'react/jsx-no-bind': 2,
43+
'react/jsx-no-bind': [2, {
44+
'ignoreRefs': false,
45+
'allowArrowFunctions': false,
46+
'allowBind': false,
47+
}],
4448
// Prevent duplicate props in JSX
4549
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
4650
'react/jsx-no-duplicate-props': [0, { 'ignoreCase': false }],

0 commit comments

Comments
 (0)