33 lines
1.1 KiB
JSON
33 lines
1.1 KiB
JSON
{
|
||
"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" }]
|
||
}
|