eslint-plugin-react
eslint-plugin-react copied to clipboard
[Enhancement]: New option of jsx-no-bind to allow pass arguments
Is there an existing issue for this?
- [x] I have searched the existing issues and my issue is unique
- [x] My issue appears in the command-line and not only in the text editor
Description Overview
Using bind in JSX may cause performance issues. We can predefine the function with arrow function.
But in some cases, need to pass some arguments to the function.
So, is it possible to add a new option to allow passing arguments?
Expected Behavior
Only report when using bind without additional arguments.
eslint-plugin-react version
v7.37.5
eslint version
v9.34.0
node version
v22.19.0