55 lines
1.0 KiB
JSON
55 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// 是否在表达式和声明上有隐含的any类型时报错
|
|
"noImplicitAny": false,
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"lib": [
|
|
"ES2020",
|
|
"DOM",
|
|
"DOM.Iterable"
|
|
],
|
|
"baseUrl": ".",
|
|
"skipLibCheck": true,
|
|
"types": [
|
|
// "webpack-env"
|
|
"node"
|
|
],
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
],
|
|
"@build/*": [
|
|
"build/*"
|
|
]
|
|
},
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "preserve",
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"src/**/*.vue",
|
|
"build/*.ts",
|
|
"vite.config.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "./tsconfig.node.json"
|
|
}
|
|
]
|
|
} |