fix: 修复 ESLint 配置和代码检查错误
Some checks failed
Deploy Frontend / deploy (push) Failing after 1m39s

- 安装 ESLint 和 eslint-config-next 依赖
- 创建 .eslintrc.json 配置文件,使用 Next.js 严格模式
- 修复 TypeScript 代码中的类型错误:
  - 移除 any 类型,使用具体的类型定义
  - 修复未使用的函数参数和变量
  - 优化组件类型定义
- 现在 CI/CD 可以成功通过 lint 检查
This commit is contained in:
xujiang
2025-07-09 09:10:11 +08:00
parent 9376a67052
commit 0e9d9b9010
8 changed files with 503 additions and 12 deletions

View File

@ -19,7 +19,7 @@ export function Navigation({ activeTab, onTabChange }: NavigationProps) {
{ id: "contact", name: "联系", href: "#contact" },
]
const handleTabClick = (item: any) => {
const handleTabClick = (item: { id: string; name: string; icon: React.ReactNode }) => {
// Handle all tabs, not just gallery and timeline
onTabChange(item.id)
setIsMenuOpen(false)