-
Couldn't load subscription status.
- Fork 49.7k
docs(eslint-plugin-react-hooks): clarify config details for prior versions #32498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(eslint-plugin-react-hooks): clarify config details for prior versions #32498
Conversation
…sions This change adds more details about prior versions of the config, to help people as they migrate from legacy to flat configs across multiple versions of this plugin. At some point in the 6.0 or 7.0 cycle, it would probably make sense to re-consolidate this into a single version.
|
Comparing: 2980f27...df6bb59 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
| #### >= 6.0.0 | ||
|
|
||
| For users of 6.0 and beyond, simply add the `recommended` config. | ||
|
|
||
| ```js | ||
| import * as reactHooks from 'eslint-plugin-react-hooks'; | ||
|
|
||
| export default [ | ||
| // ... | ||
| reactHooks.configs.recommended, | ||
| ]; | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think it might be confusing to have instructions for 6.0.0 when it's not released yet. I'd suggest removing this altogether and we can add it back just as we're about to publish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. Do you want me to go ahead and draft the follow-up change after this merges?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
This change adds more details about prior versions of the plugin's config, to help people as they migrate from legacy to flat configs across multiple versions of this plugin. At some point in the 6.0 or 7.0 cycle, it would probably make sense to re-consolidate this into a single version.
Closes #32494