forked from terraforming-mars/terraforming-mars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
42 lines (41 loc) · 1.39 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
// A base configuration for src and tests, and also the config
// Visual Studio Code reads
{
// Compiler options are mostly for the sub-configurations
"compilerOptions": {
// ES2019 support is pretty broad for Browsers, except for Function.prototype.toString, which is just not
// likely to be a problem
// ES2020 is very well supported in modern browsers.
// ES 2021 has a couple of features not supported in Opera, but they're WeakRef and Promise.any.
// It is safe to assume those features won't be run on a browser.
// "lib": ["dom", "es2021"],
"lib": ["dom", "es2021"],
"incremental": true,
"module": "commonjs",
"strict": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": true,
"preserveConstEnums": true,
"skipLibCheck": true,
"target": "es2021",
"types": ["node"],
"moduleResolution": "node",
"resolveJsonModule": true,
"allowUnreachableCode": false,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"plugins": [
{ "transform": "transformer-module" },
]
},
// This gives the VS Code IDE its magic.
"include": [
"**/*.ts",
],
}