Files
vue-desktop/tsconfig.app.json
2025-10-11 12:05:57 +08:00

26 lines
993 B
JSON

{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"paths": {
"@/*": ["./src/*"]
},
"target": "es2021",
"lib": ["es2021", "dom"],
"module": "ESNext",
"strict": true, // 严格模式检查
"experimentalDecorators": true, // 装饰器
"emitDecoratorMetadata": true, // 元数据反射
"useDefineForClassFields": false,
"strictPropertyInitialization": false, // 严格属性初始化检查
"noUnusedLocals": false, // 检查未使用的局部变量
"noUnusedParameters": false, // 检查未使用的参数
"noImplicitReturns": true, // 检查函数所有路径是否都有返回值
"noImplicitOverride": true, // 检查子类是否正确覆盖了父类方法
"allowSyntheticDefaultImports": true, // 允许使用默认导入
}
}