docs(eslint-plugin-react-hooks): add 6.0 documentation (#32513)

This change adds the details for using the 6.0+ version of the flat
recommended config.

Co-authored-by: lauren <poteto@users.noreply.github.com>
This commit is contained in:
michael faith 2025-04-09 11:42:23 -05:00 committed by GitHub
parent 3fbfb9baaf
commit 717584167b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,19 @@ yarn add eslint-plugin-react-hooks --dev
### Flat Config (eslint.config.js|ts)
#### >= 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,
];
```
#### 5.2.0
For users of 5.2.0 (the first version with flat config support), add the `recommended-latest` config.