hookehuyr

build: 添加jsconfig.json配置文件以支持路径别名和模块解析

该配置文件为项目添加了路径别名(如@/*、@components/*等),并配置了TypeScript/JavaScript编译选项,以支持ES2020目标、严格模式、模块解析等功能。这将提高代码的可维护性和开发体验。
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@root/*": ["./*"],
"@/*": ["./src/*"],
"@components/*": ["./src/components/*"],
"@composables/*": ["./src/composables/*"],
"@utils/*": ["./src/utils/*"],
"@images/*": ["./src/assets/images/*"],
"@css/*": ["./src/assets/css/*"],
"@mock/*": ["./src/assets/mock/*"],
"common/*": ["./src/common/*"],
"@api/*": ["./src/api/*"]
},
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"jsx": "preserve",
"strict": true,
"allowJs": true,
"checkJs": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src/**/*", "build/**/*", "vite.config.js"],
"exclude": ["node_modules", "dist"]
}