This article will talk about 10 most used tsconfig
.
Overview
Groups of 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"compilerOptions": {
/* Project */
"incremental": true,
"composite": true,
"tsBuildInfoFile": "./.tsbuildinfo",
"disableSourceOfProjectReferenceRedirect": true,
"disableSolutionSearching": true,
"disableReferencedProjectLoad": true,
/* Language and Environment */
"target": "esnext",
"lib": [],
"jsx": "preserve",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"jsxFactory": "",
"jsxFragmentFactory": "",
"jsxImportSource": "",
"reactNamespace": "",
"noLib": true,
"useDefineForClassFields": true,
"moduleDetection": "auto",
/* Modules */
"module": "CommonJS",
"rootDir": "./",
"moduleResolution": "node10",
"baseUrl": "./",
"paths": {},
"rootDirs": [],
"typeRoots": [],
"types": [],
"allowUmdGlobalAccess": true,
"moduleSuffixes": [],
"allowImportingTsExtensions": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"customConditions": [],
"resolveJsonModule": true,
"allowArbitraryExtensions": true,
"noResolve": true,
/* JavaScript Support */
"allowJs": true,
"checkJs": true,
"maxNodeModuleJsDepth": 1,
/* Emit */
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"sourceMap": true,
"inlineSourceMap": true,
"outFile": "./",
"outDir": "./dist",
"removeComments": true,
"noEmit": true,
"importHelpers": true,
"importsNotUsedAsValues": "remove",
"downlevelIteration": true,
"sourceRoot": "",
"mapRoot": "",
"inlineSources": true,
"emitBOM": true,
"newLine": "crlf",
"stripInternal": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"preserveConstEnums": true,
"declarationDir": "./",
"preserveValueImports": true,
/* Interop Constraints */
"isolatedModules": true,
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"preserveSymlinks": true,
"forceConsistentCasingInFileNames": true,
/* Type Checking */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"useUnknownInCatchVariables": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"allowUnusedLabels": true,
"allowUnreachableCode": true,
/* Completeness */
"skipDefaultLibCheck": true,
"skipLibCheck": true,
}
};