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:
Manuel Bieh
2019-03-14 01:09:09 +01:00
committed by Alex Krolick
parent 352c3ff01f
commit 3e489fc2f9

View File

@@ -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
}
}
```