-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
47 lines (47 loc) · 1.67 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
{
"compilerOptions": {
"module": "NodeNext",
"declaration": true,
// with "importsNotUsedAsValues": "error" dto imports used by validation decorators will silently fail.
// In our case we use swagger auto generation and when I import some DTO i provide it as type
// And then transpiler will automatically add meta-info decorators with specifying link to that dto class
// And we want to keep such "type information" in our production bundle, so I disabled back screaming about it
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"noPropertyAccessFromIndexSignature": true,
"target": "ESNext",
"sourceMap": true,
"preserveWatchOutput": true,
"allowUnusedLabels": false,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"exactOptionalPropertyTypes": false, // this property is cool but sometimes it pisses me off
"allowJs": false,
"noErrorTruncation": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"strict": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"noUncheckedIndexedAccess":true,
"useUnknownInCatchVariables": true,
"strictPropertyInitialization": true,
"alwaysStrict":true,
"noUnusedParameters": false,
"noImplicitUseStrict": false,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": false,
"noStrictGenericChecks": false,
"plugins": [
{
"name": "typescript-strict-plugin",
}
]
}
}