chore(eslint): 禁用 react/no-implicit-key 规则
- 在 eslint.config.js 中添加 react/no-implicit-key 规则并设置为 off - 禁用该规则避免需要类型信息导致的问题main
parent
a18d61521e
commit
3b672c92aa
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue