feat: add react-hooks lint (#1728)

This commit is contained in:
被雨水过滤的空气-Rairn 2023-04-19 23:01:03 +08:00 committed by GitHub
parent 1260a8df8b
commit d4165babf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,5 +10,12 @@
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
}