Browse Source

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)
main
Manuel Bieh 6 years ago
committed by Alex Krolick
parent
commit
3e489fc2f9
  1. 2
      content/docs/hooks-rules.md

2
content/docs/hooks-rules.md

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

Loading…
Cancel
Save