diff --git a/.eslintrc b/.eslintrc index 3f30d0680..139a0f029 100755 --- a/.eslintrc +++ b/.eslintrc @@ -10,5 +10,12 @@ "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" + }, + "plugins": [ + "react-hooks" + ], + "rules": { + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn" } -} \ No newline at end of file +}