- 安装 ESLint 和 eslint-config-next 依赖 - 创建 .eslintrc.json 配置文件,使用 Next.js 严格模式 - 修复 TypeScript 代码中的类型错误: - 移除 any 类型,使用具体的类型定义 - 修复未使用的函数参数和变量 - 优化组件类型定义 - 现在 CI/CD 可以成功通过 lint 检查
This commit is contained in:
@ -69,6 +69,8 @@
|
||||
"@types/node": "^22",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"eslint": "^9.30.1",
|
||||
"eslint-config-next": "^15.3.5",
|
||||
"postcss": "^8.5",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"typescript": "^5"
|
||||
|
||||
Reference in New Issue
Block a user