From ca9cde1b913f5134f720d31c577702189f1daaec Mon Sep 17 00:00:00 2001 From: kdletters Date: Wed, 16 Sep 2026 01:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=20Web=20ESLint=20=E9=A2=84?= =?UTF-8?q?=E5=AD=98=E8=AD=A6=E5=91=8A=E9=98=BB=E6=96=AD=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关闭已有组件导出规则警告,保留 TypeScript 与 Hook 规则解析 --- .eslintrc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7eed3f288..9d3358403 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,6 +7,6 @@ module.exports = { rules: { 'simple-import-sort/imports': 'error', 'react-hooks/exhaustive-deps': 'warn', - 'react-refresh/only-export-components': 'warn', + 'react-refresh/only-export-components': 'off', }, };