Skip to content

Commit cb2a5a2

Browse files
committed
docs(eslint-plugin-react-hooks): add 6.0 documentation
This change adds the details for using the 6.0+ version of the flat recommended config.
1 parent 443b7ff commit cb2a5a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/eslint-plugin-react-hooks/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ yarn add eslint-plugin-react-hooks --dev
2020

2121
### Flat Config (eslint.config.js|ts)
2222

23+
#### >= 6.0.0
24+
25+
For users of 6.0 and beyond, simply add the `recommended` config.
26+
27+
```js
28+
import * as reactHooks from 'eslint-plugin-react-hooks';
29+
30+
export default [
31+
// ...
32+
reactHooks.configs.recommended,
33+
];
34+
```
35+
2336
#### 5.2.0
2437

2538
For users of 5.2.0 (the first version with flat config support), add the `recommended-latest` config.

0 commit comments

Comments
 (0)