react/jsx-handler-names
eslint-plugin-react
No autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-handler-names": "error",
},
},
];<MyComponent handleChange={this.handleChange} /><MyComponent onChange={this.componentChanged} /><MyComponent onChange={this.handleChange} /><MyComponent onChange={this.props.onFoo} />Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
react/jsx-handler-names
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-handler-names": "error",
},
},
];react/jsx-handler-names
react plugin · style
{
"plugins": [
"react"
],
"rules": {
"react/jsx-handler-names": "error"
}
}Biome does not have this rule.
Ensure destructuring and symmetric naming of useState hook value and setter variables
Require all forwardRef components include a ref parameter