Added react-hooks rules

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-06-18 11:47:07 +04:00
parent 58e080f2e7
commit f6868cf9b6
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# React Hooks
- [ ] "exhaustive-deps"
- [ ] "rules-of-hooks"
- [X] "exhaustive-deps"
- [X] "rules-of-hooks"

View File

@ -1 +1,8 @@
{}
{
"react-hooks/exhaustive-deps": [
"warn"
],
"react-hooks/rules-of-hooks": [
"error"
]
}