eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[Enhancement]: New option of jsx-no-bind to allow pass arguments

Open woody-li opened this issue 3 months ago • 1 comments

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

woody-li avatar Sep 04 '25 03:09 woody-li