2025-06-09 10:23:45 +08:00
|
|
|
{
|
|
|
|
|
"compilerOptions": {
|
|
|
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
|
|
|
"target": "ES2022",
|
2025-06-10 16:15:04 +08:00
|
|
|
"lib": [
|
|
|
|
|
"ES2022",
|
|
|
|
|
"DOM",
|
|
|
|
|
],
|
2025-06-10 18:48:41 +08:00
|
|
|
"baseUrl": "./",
|
2025-06-10 16:15:04 +08:00
|
|
|
"paths": {
|
|
|
|
|
"@/*": [
|
2025-06-10 18:48:41 +08:00
|
|
|
"src/*"
|
2025-06-10 16:15:04 +08:00
|
|
|
]
|
|
|
|
|
// 添加路径别名
|
|
|
|
|
},
|
2025-06-09 10:23:45 +08:00
|
|
|
"module": "ESNext",
|
|
|
|
|
"skipLibCheck": true,
|
|
|
|
|
/* Bundler mode */
|
|
|
|
|
"moduleResolution": "bundler",
|
|
|
|
|
"allowImportingTsExtensions": true,
|
|
|
|
|
"verbatimModuleSyntax": true,
|
|
|
|
|
"moduleDetection": "force",
|
|
|
|
|
"noEmit": true,
|
2025-06-10 16:15:04 +08:00
|
|
|
"esModuleInterop": true,
|
|
|
|
|
// 关键:允许 CommonJS 导入
|
2025-06-09 10:23:45 +08:00
|
|
|
/* Linting */
|
|
|
|
|
"strict": true,
|
|
|
|
|
"noUnusedLocals": true,
|
|
|
|
|
"noUnusedParameters": true,
|
2025-06-10 16:15:04 +08:00
|
|
|
// "erasableSyntaxOnlsy": true,
|
2025-06-09 10:23:45 +08:00
|
|
|
"noFallthroughCasesInSwitch": true,
|
2025-06-10 16:15:04 +08:00
|
|
|
"incremental": true
|
|
|
|
|
// "noUncheckedSideEffectImports": true
|
2025-06-09 10:23:45 +08:00
|
|
|
},
|
2025-06-10 16:15:04 +08:00
|
|
|
// "include": ["vite.config.ts"]
|
2025-06-09 17:10:41 +08:00
|
|
|
"include": [
|
|
|
|
|
"src/**/*.ts",
|
|
|
|
|
"src/**/*.d.ts",
|
|
|
|
|
"src/**/*.tsx",
|
2025-06-10 16:15:04 +08:00
|
|
|
"src/**/*.vue",
|
|
|
|
|
// 必须包含 Vue 文件
|
|
|
|
|
"vite.config.ts",
|
|
|
|
|
// 包含 Vite 配置文件
|
|
|
|
|
"src/main.ts"
|
|
|
|
|
// 包含入口文件
|
2025-06-09 17:10:41 +08:00
|
|
|
]
|
2025-06-09 10:23:45 +08:00
|
|
|
}
|