chore(lint): 禁用 react/no-implicit-key 规则
- 在 ESLint 配置中关闭 react/no-implicit-key 规则 - 允许组件中存在隐式 key 属性的使用master
parent
46f06816a8
commit
1b016aba54
|
|
@ -20,6 +20,7 @@ export default antfu({
|
||||||
"react-hooks-extra/no-unnecessary-use-prefix": "off",
|
"react-hooks-extra/no-unnecessary-use-prefix": "off",
|
||||||
"react-hooks-extra/prefer-use-state-lazy-initialization": "off",
|
"react-hooks-extra/prefer-use-state-lazy-initialization": "off",
|
||||||
"react-hooks/exhaustive-deps": "off",
|
"react-hooks/exhaustive-deps": "off",
|
||||||
|
"react/no-implicit-key": "off",
|
||||||
},
|
},
|
||||||
javascript: {
|
javascript: {
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "error" : "warn",
|
"no-console": process.env.NODE_ENV === "production" ? "error" : "warn",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue