vue-front/tsconfig.json
2025-04-24 11:53:18 +08:00

33 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"compilerOptions": {
"target": "ES2020",// 指定ECMAScript目标版本
"useDefineForClassFields": true,// 是否校验TypeScript数据类型
"module": "ESNext",// 生成代码的模板标准
"removeComments": true, // 是否删除注释
"outDir": "./dist", // 指定输出目录
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": false,
"baseUrl": "./", // 解析非相对模块的基地址,默认是当前目录
"paths": {"@/*": ["src/*"]}, // 路径映射相对于baseUrl
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
/* tsx */
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}