-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
48 lines (48 loc) · 1.73 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
{
"compilerOptions": {
// match output dir to input dir. e.g. dist/index instead of dist/src/index
"rootDir": "src/",
"outDir": "dist/",
"pretty": true,
"target": "ES2019",
"module": "ESNext",
"moduleResolution": "node",
// transpile JSX to React.createElement
"jsx": "react",
"lib": [
"DOM",
"DOM.Iterable",
"ES2019"
],
"allowJs": true,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
// output .d.ts declaration files for consumers
"declaration": true,
"declarationMap": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS
"skipLibCheck": true,
"preserveConstEnums": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
// ensure type imports are side-effect free by enforcing that `import type` is used
"importsNotUsedAsValues": "preserve",
// interop between ESM and CJS modules. Recommended by TS
"esModuleInterop": true,
// prevent the use features that do not work with isolated transpilation
"isolatedModules": true,
// stricter type-checking for stronger correctness. Recommended by TS
"strict": true,
// error out if import and file system have a casing mismatch. Recommended by TS
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": [
"src",
"types"
]
}