-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
83 lines (69 loc) · 2.15 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"include": [
"./dev.ts",
"./build.ts",
"./eslint.config.ts",
"./pre-bundle/entries/",
"./global.d.ts",
"./src/",
"./i18n/index.ts"
],
"compilerOptions": {
"baseUrl": ".",
// --- 用来控制输出文件结构
// "rootDir": "./lib/",
// "outDir": "./build/",
// "outFile": "",
"paths": {
"@/*": ["./src/*"],
"@i18n/*": ["./i18n/*"],
},
// --- module
"module": "ESNext", // none, CommonJS, amd, system, umd, es6, es2015, ESNext
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true,
"esModuleInterop": false,
"resolveJsonModule": true,
"isolatedModules": true,
// --- build
"target": "ESNext",
"allowJs": false,
"checkJs": false,
"pretty": true,
"newLine": "lf",
"lib": ["ESNext", "DOM"],
"importHelpers": true,
"incremental": true,
"tsBuildInfoFile": "./node_modules/.tsbuildinfo.json",
// --- emit
"noEmit": true,
"declaration": false,
"emitDeclarationOnly": false,
"noEmitOnError": false,
"listEmittedFiles": true,
"rewriteRelativeImportExtensions": false,
// --- source maps
"sourceMap": true,
"inlineSourceMap": false,
"inlineSources": false,
// --- features
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"preserveSymlinks": false,
"jsx": "react-jsx",
"removeComments": false,
"preserveConstEnums": true,
"forceConsistentCasingInFileNames": true,
"allowImportingTsExtensions": true,
// --- type checking
"strict": false,
"alwaysStrict": false,
"noImplicitAny": false,
"noImplicitReturns": false,
"noImplicitThis": true,
"noImplicitOverride": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,
}
}