You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,17 @@ Then add it to your ESLint configuration:
34
34
}
35
35
```
36
36
37
+
Or use the recommended config:
38
+
39
+
```js
40
+
{
41
+
"extends": [
42
+
// ...
43
+
"plugin:react-hooks/recommended"
44
+
]
45
+
}
46
+
```
47
+
37
48
## Valid and Invalid Examples
38
49
39
50
Please refer to the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html) documentation and the [Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#what-exactly-do-the-lint-rules-enforce) to learn more about this rule.
0 commit comments