chore: add react hooks eslint conf

This commit is contained in:
Juan Picado @jotadeveloper
2019-08-11 07:24:54 +02:00
parent 542212a479
commit 502c0903ab
3 changed files with 10 additions and 1 deletions

View File

@@ -13,7 +13,8 @@
"prettier",
"verdaccio",
"jsx-a11y",
"codeceptjs"
"codeceptjs",
"react-hooks"
],
"settings": {
"react": {
@@ -107,6 +108,8 @@
2,
"always"
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"verdaccio/jsx-no-style": ["warn"],
"verdaccio/jsx-spread": ["warn"],
"jest/expect-expect": 0,