[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
I've created a new project using eslint 9 that brings the eslint-plugin-react config, then I've installed storybook that brings the default Button component as an example.
Default Button component:
Eslint config
Error
Expected Behavior
I believe it shouldn't happen on a function component since the rule is related to not direct mutate a state. I understand I can't disble that rule, otherwise it wont throw an error if there's a code where the state is being directly mutated.
Is there an existing issue for this?
Description Overview
I've created a new project using eslint 9 that brings the
eslint-plugin-react
config, then I've installed storybook that brings the default Button component as an example.Default Button component:
Eslint config
Error
Expected Behavior
I believe it shouldn't happen on a function component since the rule is related to not direct mutate a state. I understand I can't disble that rule, otherwise it wont throw an error if there's a code where the state is being directly mutated.
eslint-plugin-react version
7.34.1
eslint version
9.2.0
node version
v20.13.0