chore(eslint): 禁用 react/no-implicit-key 规则

- 在 eslint.config.js 中添加 react/no-implicit-key 规则并设置为 off
- 禁用该规则避免需要类型信息导致的问题
main
wangyan 2026-04-03 16:17:11 +08:00
parent a18d61521e
commit 3b672c92aa
1 changed files with 1 additions and 0 deletions

View File

@ -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",