-
Notifications
You must be signed in to change notification settings - Fork 4
/
tsconfig.json
58 lines (54 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
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
{
"ts-node": {
"compiler": "ttypescript"
},
"compilerOptions": {
// Make the compiler stricter, catch more errors
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// We handle these with ESLint:
// "noUnusedLocals": false,
// "noUnusedParameters": false,
// TODO
// because of @types/download
"skipLibCheck": true,
// Output
"target": "ES2019",
"module": "commonjs",
"moduleResolution": "Node",
"importHelpers": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"jsx": "preserve",
// DX
"incremental": true,
"tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo",
"noErrorTruncation": true,
"baseUrl": "./",
"paths": {
"#*": ["./src/lib/*"]
},
// Other
// Only enable this for applications.
// Packages doing this force their consumers to.
// TODO for kleur, find way to avoid doing this so consumers of bema do not.
"esModuleInterop": true,
// Transformer Plugins made possible by https://github.com/cevek/ttypescript
"plugins": [
// https://github.com/dsherret/ts-nameof
{ "transform": "ts-nameof", "type": "raw" },
// https://github.com/LeDDGroup/typescript-transform-paths
{ "transform": "typescript-transform-paths" }
]
},
"include": ["src", "tests"],
"plugins": [
{
"name": "typescript-snapshots-plugin"
}
]
}