Based on jsx-no-bind
rule from tslint-react.
Rule rewritten, fixed detection of bind
call expression.
Forbids function binding in JSX attributes.
Checks for calling bind
method with single this
attribute in JSX arguments.
const myButton = (
<button onClick={foo.bind(this)}>
Button
</button>
);
"avol-jsx-no-bind": true