Skip to content

Commit 3e489fc

Browse files
manuelbiehalexkrolick
authored andcommitted
Fixing incorrect value for eslint rule (#1824)
The name for the "warning" level in ESLint is `warn` not `warning` (https://eslint.org/docs/user-guide/configuring#configuring-rules)
1 parent 352c3ff commit 3e489fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ npm install eslint-plugin-react-hooks
4141
"rules": {
4242
// ...
4343
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
44-
"react-hooks/exhaustive-deps": "warning" // Checks effect dependencies
44+
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
4545
}
4646
}
4747
```

0 commit comments

Comments
 (0)