File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
packages/eslint-plugin-react-hooks Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,20 @@ npm install eslint-plugin-react-hooks --save-dev
18
18
yarn add eslint-plugin-react-hooks --dev
19
19
```
20
20
21
- Then add it to your ESLint configuration:
21
+ Then extend the recommended eslint config:
22
+
23
+ ``` js
24
+ {
25
+ " extends" : [
26
+ // ...
27
+ " plugin:react-hooks/recommended"
28
+ ]
29
+ }
30
+ ```
31
+
32
+ ### Custom Configuration
33
+
34
+ If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:
22
35
23
36
``` js
24
37
{
@@ -34,16 +47,6 @@ Then add it to your ESLint configuration:
34
47
}
35
48
```
36
49
37
- Or use the recommended config:
38
-
39
- ``` js
40
- {
41
- " extends" : [
42
- // ...
43
- " plugin:react-hooks/recommended"
44
- ]
45
- }
46
- ```
47
50
48
51
## Valid and Invalid Examples
49
52
You can’t perform that action at this time.
0 commit comments