Files
tools-web/tsconfig.json
T
2026-03-02 19:09:17 +08:00

39 lines
1.0 KiB
JSON

{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// Element Plus全局组件类型声明
"types": ["element-plus/global"],
//解析非相对模块的基地址,默认是当前目录
"baseUrl": "./",
//路径映射,相对于baseUrl
"paths": {
"@/*": ["src/*"]
},
"allowJs": true,
"noImplicitAny": false,
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.ts*", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}