Adding eslint-plugin-react-hooks (#2811)

This commit is contained in:
Alex Andreev authored and GitHub committed 2021-05-20 12:01:01 -04:00
1 parent 99a0361f1a
commit 76d3a4b180
3 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -50,6 +50,7 @@ module.exports = {
plugins: [
"header",
"unused-imports",
"react-hooks"
],
rules: {
"header/header": [2, "./license-header"],
@@ -210,7 +211,9 @@ module.exports = {
{ "blankLine": "always", "prev": "*", "next": "class" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
]
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off"
},
}
]