58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
// Visit https://aka.ms/tsconfig to read more about this file
|
|
"compilerOptions": {
|
|
// File Layout
|
|
"rootDir": "./",
|
|
"outDir": "./dist",
|
|
|
|
// Environment Settings
|
|
// See also https://aka.ms/tsconfig/module
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"target": "es2022",
|
|
"lib": ["es2022", "dom", "dom.iterable"],
|
|
|
|
// Other Outputs
|
|
// 关了,用的时候老跳找不到源文件
|
|
"sourceMap": false,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
|
|
// Stricter Typechecking Options
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
|
|
// Style Options
|
|
"noImplicitReturns": true,
|
|
"noImplicitOverride": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
// Recommended Options
|
|
"strict": true,
|
|
"verbatimModuleSyntax": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"skipLibCheck": true,
|
|
|
|
// Path mapping
|
|
"baseUrl": "./",
|
|
"paths": {
|
|
"@/*": ["./"]
|
|
}
|
|
},
|
|
"include": [
|
|
"**/*.ts",
|
|
"**/*.js"
|
|
],
|
|
"exclude": [
|
|
"**/*.config.ts",
|
|
"test/**/*",
|
|
"node_modules",
|
|
"dist",
|
|
"**/*.test.ts",
|
|
"**/*.spec.ts"
|
|
]
|
|
}
|