forked from xun082/online-edit-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
32 lines (31 loc) · 1.5 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
{
"compilerOptions": {
"rootDir": "./src",
"target": "ESNext", // 指定 ECMAScript 目标版本
"module": "ESNext", //指定生成那个模块的代码
"strict": true, // 开启所有的严格检查配置
"esModuleInterop": true,
"outDir": "dist",
"lib": ["DOM", "DOM.Iterable", "ESNext"], // 指定要包含在编译中的库文件
"checkJs": true, // 检查js文件
"allowJs": true, // 允许编译js文件
"skipLibCheck": true, // 跳过所有声明文件的检查
"jsx": "preserve", // 保存不变,使用babel转化
"noEmit": true, // 禁止编译器生成文件
"moduleResolution": "node", // 将模块解析模式设置为 node 模式
"removeComments": true, // 删除编译后的所有的注释
"sourceMap": true,
"allowSyntheticDefaultImports": true, // 运行合成默认模块导出
"noImplicitAny": true, // 在表达式和声明上有隐含的 any 类型时报错
"strictNullChecks": true, // 启用严格的 null 检查
"noImplicitThis": false, // 当 this 表达式值为 any 类型的时候,生成一个错误
"types": ["node", "@types/wicg-file-system-access"], // https://stackoverflow.com/questions/71309058/property-showsavefilepicker-does-not-exist-on-type-window-typeof-globalthis
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"],
"@pages/*": ["./src/pages/*"]
}
},
"include": ["src", "src/react.d.ts"],
"exclude": ["node_module", "dist", "./src/utils/console.js"]
}