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>
michael faith committed
Apr 9, 2025 at 11:42 UTC
717584167b6b976dc577d75e1a8c49c0826b66ee
1 file changed
+13
packages/eslint-plugin-react-hooks/README.md
+13
@@ -20,6 +20,19 @@ yarn add eslint-plugin-react-hooks --dev
20
21
### Flat Config (eslint.config.js|ts)
22
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
+
36
#### 5.2.0
37
38
For users of 5.2.0 (the first version with flat config support), add the `recommended-latest` config.