26 lines
796 B
JSON
26 lines
796 B
JSON
|
|
{
|
||
|
|
"compilerOptions": {
|
||
|
|
"target": "ES2022",
|
||
|
|
"module": "ESNext",
|
||
|
|
"moduleResolution": "bundler",
|
||
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||
|
|
"jsx": "preserve",
|
||
|
|
"strict": true,
|
||
|
|
"noUnusedLocals": true,
|
||
|
|
"noUnusedParameters": true,
|
||
|
|
"noFallthroughCasesInSwitch": true,
|
||
|
|
"isolatedModules": true,
|
||
|
|
"resolveJsonModule": true,
|
||
|
|
"skipLibCheck": true,
|
||
|
|
"noEmit": true,
|
||
|
|
"types": ["node", "vite/client"],
|
||
|
|
"paths": {
|
||
|
|
// 自 TypeScript 4.1 起 paths 不再需要 baseUrl —— 未指定时按
|
||
|
|
// tsconfig.json 所在目录解析,结果与原先一致。
|
||
|
|
// 保留 baseUrl 会被新版 TypeScript 标记为已弃用选项。
|
||
|
|
"@/*": ["./src/*"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"include": ["src/**/*.ts", "src/**/*.vue", "env.d.ts", "vite.config.ts"]
|
||
|
|
}
|