mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
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:
parent
3fbfb9baaf
commit
717584167b
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user