canteen_system/tsconfig.json

43 lines
1.1 KiB
JSON

{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"allowJs": true,
"module": "ESNext",
"lib": ["ESNext", "DOM", "ScriptHost"],
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
},
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "preserve",
/* Linting */
"strict": true,
//检查未使用的局部变量
//"noUnusedLocals": true,
//检查switch有没有使用break
"noFallthroughCasesInSwitch": true,
//启用简单模式 const str:string = undefined | null;
"strictNullChecks": false,
//为发出的JavaScript文件创建源映射文件——用来指定编译时是否生成.map文件
"sourceMap": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"exclude": [
"node_modules",
"dist",
"src/assets/iconfont/iconfont.js",
"**/*.js"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}