We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
react/jsx-no-bind
1 parent e7f5e0f commit 34f64c2Copy full SHA for 34f64c2
packages/eslint-config-airbnb/rules/react.js
@@ -40,7 +40,11 @@ module.exports = {
40
'react/jsx-max-props-per-line': [0, { 'maximum': 1 }],
41
// Prevent usage of .bind() and arrow functions in JSX props
42
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
43
- 'react/jsx-no-bind': 2,
+ 'react/jsx-no-bind': [2, {
44
+ 'ignoreRefs': false,
45
+ 'allowArrowFunctions': false,
46
+ 'allowBind': false,
47
+ }],
48
// Prevent duplicate props in JSX
49
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
50
'react/jsx-no-duplicate-props': [0, { 'ignoreCase': false }],
0 commit comments