2023-04-02 01:01:56 +08:00
{
2025-03-07 12:17:41 +08:00
"$schema" : "https://json.schemastore.org/tsconfig" ,
2023-04-03 00:05:09 +08:00
"compilerOptions" : {
2025-03-07 12:17:41 +08:00
"baseUrl" : "." ,
// https://vite.dev/config/build-options.html#build-target
"target" : "ES2020" ,
"module" : "ESNext" ,
"moduleResolution" : "Bundler" ,
"lib" : [ "ESNext" , "DOM" , "DOM.Iterable" ] ,
"skipLibCheck" : true ,
// This setting lets you specify a file for storing incremental compilation information as a part of composite projects which enables faster building of larger TypeScript codebases.
"tsBuildInfoFile" : "./node_modules/.tmp/tsconfig.tsbuildinfo" ,
2023-12-26 10:04:35 +00:00
"strict" : true ,
2025-03-07 12:17:41 +08:00
"allowJs" : true ,
2023-04-03 00:05:09 +08:00
"jsx" : "preserve" ,
"sourceMap" : true ,
"resolveJsonModule" : true ,
"esModuleInterop" : true ,
2025-03-07 12:17:41 +08:00
"noEmit" : true ,
2023-04-03 00:05:09 +08:00
"paths" : {
2025-03-07 12:17:41 +08:00
"@/*" : [ "./src/*" ]
2023-04-03 00:05:09 +08:00
} ,
2025-03-07 12:17:41 +08:00
"types" : [ "node" , "vite/client" ] ,
// 自定义配置
"noImplicitAny" : false , // 禁用 隐式的any错误
"removeComments" : true , // 移除 ts注释
"experimentalDecorators" : true , // 启用实验性的装饰器支持
"strictFunctionTypes" : false , // 禁用严格函数类型检查
"strictNullChecks" : false , // 禁用严格的空值检查
"allowSyntheticDefaultImports" : true , // 允许默认导入
"forceConsistentCasingInFileNames" : true // 强制在文件名中使用一致的大小写
2023-04-03 00:05:09 +08:00
} ,
2025-03-07 13:28:25 +08:00
"include" : [
2025-03-12 12:14:51 +08:00
"src/**/*.ts" ,
2025-03-07 13:28:25 +08:00
"src/**/*.vue" ,
"vite.config.ts" ,
"vitest.config.ts" ,
"eslint.config.ts" ,
"src/**/*.d.ts"
] ,
2025-03-07 12:17:41 +08:00
"exclude" : [ "node_modules" , "dist" , "src/**/__tests__/*" ]
2023-04-02 01:01:56 +08:00
}