mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
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)
This commit is contained in:
committed by
Alex Krolick
parent
352c3ff01f
commit
3e489fc2f9
@@ -41,7 +41,7 @@ npm install eslint-plugin-react-hooks
|
||||
"rules": {
|
||||
// ...
|
||||
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
|
||||
"react-hooks/exhaustive-deps": "warning" // Checks effect dependencies
|
||||
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user