-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
41 lines (41 loc) · 1.6 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
{
//Hold your mouse for a while on top of any word and you will get a nice description (VSCode)
"compilerOptions":
{
//Build dir
"outDir": "./_dist-tsc/",
//Rules
"strict": true, //This turns on a lot of things, I disable two because I don't like them
"strictPropertyInitialization": false,
"strictNullChecks": true,
"noImplicitReturns": true,
"noUnusedParameters": false,
"noUnusedLocals": false,
"noFallthroughCasesInSwitch": true,
// "preserveConstEnums": true,
// Output and other settings
"sourceMap": true, //Makes debugging waaay easier
"module": "ESNext", //Doesn't really mean anything. This is if you are making a library
"moduleResolution": "node",
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"target": "ESNext", //es5 = Internet Explorer and Everybody else. es6 = Everybody but Internet Explorer.
"downlevelIteration": true, //This is said to cause really really ugly code. Only enable it if you can't find a better way.
"typeRoots":
[
"node_modules/@types"
],
"baseUrl": "./",
"paths": {
}
},
"include":
[
"./src/**/*.ts",
"global.d.ts"
]
}