You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: