Explorar el Código

rewrite eslintrc

itizawa hace 5 años
padre
commit
d67f0475e0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      .eslintrc.js

+ 3 - 0
.eslintrc.js

@@ -18,6 +18,7 @@ module.exports = {
   },
   plugins: [
     "jest",
+    "react-hooks",
   ],
   rules: {
     'indent': [
@@ -33,5 +34,7 @@ module.exports = {
     ],
     // eslint-plugin-import rules
     'import/no-unresolved': [2, { ignore: ['^@'] }], // ignore @alias/..., @commons/..., ...
+    "react-hooks/rules-of-hooks": "error",
+    "react-hooks/exhaustive-deps": "warn"
   },
 };