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