File tree Expand file tree Collapse file tree
packages/eslint-config-airbnb/rules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,13 +107,15 @@ module.exports = {
107107
108108 // Prevent usage of .bind() in JSX props
109109 // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
110- 'react/jsx-no-bind' : [ 'error' , {
111- ignoreRefs : true ,
112- allowArrowFunctions : true ,
113- allowFunctions : false ,
114- allowBind : false ,
115- ignoreDOMComponents : true ,
116- } ] ,
110+ // Prevent usage of .bind() and inline arrow functions in JSX props
111+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
112+ 'react/jsx-no-bind' : [ 'error' , {
113+ ignoreRefs : true ,
114+ allowArrowFunctions : false ,
115+ allowFunctions : false ,
116+ allowBind : false ,
117+ ignoreDOMComponents : false ,
118+ } ] ,
117119
118120 // Prevent duplicate props in JSX
119121 // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
You can’t perform that action at this time.
0 commit comments