-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
49 lines (45 loc) · 1.53 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
{
"compilerOptions": {
// use latest since there have no requirement to support older versions like browser
"target": "ESNext",
// Specify what module code is generated
"module": "ESNext",
// Specify how TypeScript looks up a file from a given module specifier
"moduleResolution": "Bundler",
// Specify the root folder contains all ts files
"rootDir": ".",
// Specify the base directory to resolve non-relative module names
"baseUrl": "./src",
"paths": {
"@/*": ["../src/*"],
"~/*": ["../tests/*"]
},
"outDir": "./build",
"strict": true,
// Don't emit generated files to output.
// This flag will be overwrite when building the project
"noEmit": true,
// Remove comments from output
"removeComments": true,
// Make file imports are case-sensitive
"forceConsistentCasingInFileNames": true,
// Treat files as modules even if it doesn't use import/export
"moduleDetection": "force",
// Allow JSON modules to be imported
"resolveJsonModule": true,
// Use correct ESM import behavior
"esModuleInterop": true,
// Disallow features that require cross-file awareness
"isolatedModules": true,
// Force all non-type imports being preserved
"verbatimModuleSyntax": true,
// Sometime the library types will be incorrect
"skipLibCheck": true,
"useDefineForClassFields": true
},
"exclude": ["node_modules", "dist", "build", "docs", "coverage"],
"tsc-alias": {
"resolveFullPaths": true,
"verbose": true
}
}