Fix sample ESLint configuration (#14926)

See [ESLint docs](https://eslint.org/docs/user-guide/configuring#configuring-rules)
This commit is contained in:
Matt Thomson
2019-02-22 12:22:07 +00:00
committed by Dan Abramov
parent 22bb947642
commit f99fca3cb2

View File

@@ -29,7 +29,7 @@ Then add it to your ESLint configuration:
"rules": {
// ...
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warning"
"react-hooks/exhaustive-deps": "warn"
}
}
```