mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Adding eslint-plugin-react-hooks (#2811)
This commit is contained in:
1 parent
99a0361f1a
commit
76d3a4b180
3 files changed
+10
-1
No files matched your search
+4
-1
@@ -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"
|
||||
},
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user