소스 검색

Enable important React Hooks linters (#574)

Steven Luscher 3 년 전
부모
커밋
f0932f1541
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      .eslintrc

+ 3 - 1
.eslintrc

@@ -27,7 +27,9 @@
         "@typescript-eslint/no-unused-vars": "off",
         "@typescript-eslint/no-empty-interface": "off",
         "@typescript-eslint/consistent-type-imports": "error",
-        "react/no-unescaped-entities": ["error", { "forbid": [">"] }]
+        "react/no-unescaped-entities": ["error", { "forbid": [">"] }],
+        "react-hooks/rules-of-hooks": "error",
+        "react-hooks/exhaustive-deps": "warn"
     },
     "overrides": [
         {