ufutx-pc-website/tsconfig.node.json
2025-06-30 09:26:33 +08:00

49 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,
"resolveJsonModule": true, // 允许导入JSON文件
"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"
// 包含入口文件
]
}