Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4821d60 commit 8abc202Copy full SHA for 8abc202
packages/eslint-plugin-react-hooks/README.md
@@ -18,7 +18,20 @@ npm install eslint-plugin-react-hooks --save-dev
18
yarn add eslint-plugin-react-hooks --dev
19
```
20
21
-Then add it to your ESLint configuration:
+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:
35
36
```js
37
{
@@ -34,16 +47,6 @@ Then add it to your ESLint configuration:
47
}
48
49
-Or use the recommended config:
38
-
39
-```js
40
-{
41
- "extends": [
42
- // ...
43
- "plugin:react-hooks/recommended"
44
- ]
45
-}
46
-```
50
51
## Valid and Invalid Examples
52
0 commit comments