-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtsconfig.json
41 lines (41 loc) · 1.19 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @program: dolphin-cloud-docs
* @description: vite的typescript编译配置
* vite内部使用esbuild对typescript编译成js
* vite天然对typescript的支持文档: https://vitejs.bootcss.com/guide/features.html#typescript
* 配置官方文档: https://www.typescriptlang.org/docs/handbook/compiler-options.html
* @author: entfrm开发团队-王翔
* @create: 2023/1/4
*/
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"isolatedModules": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"allowJs": true,
"jsx": "preserve",
"lib": ["dom", "esnext"],
"noImplicitThis" : false,
"noImplicitAny": false,
"skipLibCheck": true,
"types": ["@docsearch/js", "node", "unplugin-icons/types/vue"],
"typeRoots": ["./node_modules/@types/"],
"removeComments": true,
"paths": {
"~/*": ["./docs/.vitepress/vitepress/*"]
},
},
"include": [
"docs/**/*.ts",
"docs/**/*.d.ts",
"docs/**/*.tsx",
"docs/**/*.vue",
],
"exclude": ["node_modules", "**/dist", "**/*.js"]
}