From d4165babf799a1760ccc215518fe5f6d32752873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=AB=E9=9B=A8=E6=B0=B4=E8=BF=87=E6=BB=A4=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=B0=94-Rairn?= <958414905@qq.com> Date: Wed, 19 Apr 2023 23:01:03 +0800 Subject: [PATCH] feat: add react-hooks lint (#1728) --- .eslintrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 3f30d0680..139a0f029 100755 --- a/.eslintrc +++ b/.eslintrc @@ -10,5 +10,12 @@ "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" + }, + "plugins": [ + "react-hooks" + ], + "rules": { + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn" } -} \ No newline at end of file +}