This commit is contained in:
xiaojunnuo
2024-10-17 18:32:45 +08:00
parent 304ef494fd
commit 6e2ac1c089
61 changed files with 1365 additions and 48 deletions

51
tsconfig.json Normal file
View File

@@ -0,0 +1,51 @@
{
"compileOnSave": false,
"compilerOptions": {
// 这样就可以对 `this` 上的数据属性进行更严格的推断`
"noImplicitAny": true,
"allowJs": true,
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strictNullChecks" :false,
"sourceMap": true,
"baseUrl": ".",
"outDir": "./dist/ts",
"types": [
"vite/client",
"mocha",
"chai",
"node",
"unplugin-vue-define-options/macros-global"
],
"paths": {
"/@/*": ["src/*"],
"/src/*": ["src/*"],
"/#/*": ["types/*"]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules",
"vite.config.ts"
]
}