重构: 升级ESLint配置并优化项目结构 │

│                                                                                                                    │
│   - 迁移至ESLint新版配置格式(eslint.config.mjs)                                                                    │
│   - 添加Next.js ESLint配置支持                                                                                     │
│   - 新增样式类型定义文件                                                                                           │
│   - 优化TypeScript和Vite配置                                                                                       │
│   - 更新Tailwind CSS配置                                                                                           │
│                                                                                                                    │
│   🤖 Generated with [Claude Code](https://claude.com/claude-code)                                                  │
│                                                                                                                    │
│   Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
贺海国
2025-10-22 19:02:47 +08:00
parent 9866a86f32
commit 8da01a207d
9 changed files with 2874 additions and 31 deletions

25
crop-x/eslint.config.mjs Normal file
View File

@@ -0,0 +1,25 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
{
ignores: [
"node_modules/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
],
},
];
export default eslintConfig;