重构: 升级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

View File

@@ -7,19 +7,7 @@ export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@config': path.resolve(__dirname, './src/config'),
'@router': path.resolve(__dirname, './src/router'),
'@api': path.resolve(__dirname, './src/apis'),
'@stores': path.resolve(__dirname, './src/stores'),
'@pages': path.resolve(__dirname, './src/pages'),
'@components': path.resolve(__dirname, './src/components'),
'@utils': path.resolve(__dirname, './src/utils'),
'@types': path.resolve(__dirname, './src/types'),
'@assets': path.resolve(__dirname, './src/assets'),
'@lib': path.resolve(__dirname, './src/lib'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@styles': path.resolve(__dirname, './src/styles')
'@': path.resolve(__dirname, './src')
}
},
server: {