Accidental bypass for react/jsx-no-bind allowArrowFunctions #1395
Closed
Description
opened on Aug 23, 2017
We've recently started to get rid of our usage of arrow functions in component props for similar reasons to that mentioned here. We went ahead and set:
'react/jsx-no-bind': ['error', {
allowArrowFunctions: false,
allowBind: false,
}]
but realized we were still able to get away with using something like:
const someFunc = () => onClickHandler(userId)
<SomeComponent onClick={someFunc} />
So we didn't fix the problem, we just accidentally tricked it. Is this expected behavior or is this a bug?
Activity