From 3b672c92aa414be2ed69dd07704068936865d281 Mon Sep 17 00:00:00 2001 From: wangyan Date: Fri, 3 Apr 2026 16:17:11 +0800 Subject: [PATCH] =?UTF-8?q?chore(eslint):=20=E7=A6=81=E7=94=A8=20react/no-?= =?UTF-8?q?implicit-key=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 eslint.config.js 中添加 react/no-implicit-key 规则并设置为 off - 禁用该规则避免需要类型信息导致的问题 --- eslint.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.js b/eslint.config.js index 06fcf00..11c870e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,6 +20,7 @@ export default antfu({ "react-hooks-extra/no-unnecessary-use-prefix": "off", "react-hooks-extra/prefer-use-state-lazy-initialization": "off", "react-hooks/exhaustive-deps": "off", + "react/no-implicit-key": "off", // 添加这行来禁用需要类型信息的规则 }, javascript: { "no-console": process.env.NODE_ENV === "production" ? "error" : "warn",