Skip to content

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

@woody-li

Description

@woody-li

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions