-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
364 lines (287 loc) · 13 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
{
"compilerOptions": {
/* Allow JavaScript files to be compiled. */
// "allowJs": false,
/*
* Allow default imports from modules with no default export.
* This does not affect code emit, just typechecking.
*/
// "allowSyntheticDefaultImports": false,
/* Do not report errors on unreachable code. */
// "allowUnreachableCode": false,
/* Do not report errors on unused labels. */
// "allowUnusedLabels": false,
/* Parse in strict mode and emit `"use strict";` for each source file. */
// "alwaysStrict": false,
/*
* Base directory to resolve non-relative module names. See
* [Module Resolution documentation](https://www.typescriptlang.org/docs/handbook/module-resolution.html#base-url)
* for more details.
*/
// "baseUrl": "",
/* The character set of the input files. */
// "charset": "utf8",
/* Report errors in `.js` files. Use in conjunction with `--allowJs`. */
// "checkJs": false,
/* Generates corresponding `.d.ts` file. */
"declaration": true,
/* Output directory for generated declaration files. */
// "declarationDir": "",
/* Generates a sourcemap for each corresponding `.d.ts` file. */
"declarationMap": true,
/* Show diagnostic information. */
// "diagnostics": false,
/* Disable size limitation on JavaScript project. */
// "disableSizeLimit": false,
/* Provide full support for iterables in `for..of`, spread and destructuring when targeting ES5 or ES3. */
// "downlevelIteration": false,
/* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
// "emitBOM": false,
/* Only emit `.d.ts` declaration files. */
// "emitDeclarationOnly": false,
/*
* Emit design-type metadata for decorated declarations in source. See
* [issue #2577](https://github.com/Microsoft/TypeScript/issues/2577) for details.
*/
"emitDecoratorMetadata": true,
/*
* Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable
* `--allowSyntheticDefaultImports` for typesystem compatibility.
*/
"esModuleInterop": true,
/* Enables experimental support for ES decorators. */
"experimentalDecorators": true,
/* Show verbose diagnostic information. */
// "extendedDiagnostics": false,
/* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true,
/* Import emit helpers (e.g. `__extends`, `__rest`, etc.) from `tslib`. */
// "importHelpers": false,
/* Emit a single file with source maps instead of having a separate file. */
// "inlineSourceMap": false,
/*
* Emit the source alongside the sourcemaps within a single file; requires `--inlineSourceMap` or `--sourceMap` to
* be set.
*/
// "inlineSources": false,
/* Transpile each file as a separate module (similar to `ts.transpileModule`). */
// "isolatedModules": false,
/*
* Support JSX in `.tsx` files: `React` or `Preserve`. See
* [JSX](https://www.typescriptlang.org/docs/handbook/jsx.html).
*/
// "jsx": "Preserve",
/* Specify the JSX factory function to use when targeting react JSX emit, e.g. `React.createElement` or `h`. */
// "jsxFactory": "React.createElement",
/* Resolve `keyof` to string valued property names only (no numbers or symbols). */
// "keyofStringsOnly": false,
/*
* List of library files to be included in the compilation. Possible values are:
* `ES5`,
* `ES6`,
* `ES2015`,
* `ES7`,
* `ES2016`,
* `ES2017`,
* `ES2018`,
* `ESNext`,
* `DOM`,
* `DOM.Iterable`,
* `WebWorker`,
* `ScriptHost`,
* `ES2015.Core`,
* `ES2015.Collection`,
* `ES2015.Generator`,
* `ES2015.Iterable`,
* `ES2015.Promise`,
* `ES2015.Proxy`,
* `ES2015.Reflect`,
* `ES2015.Symbol`,
* `ES2015.Symbol.WellKnown`,
* `ES2016.Array.Include`,
* `ES2017.Object`,
* `ES2017.Intl`,
* `ES2017.SharedMemory`,
* `ES2017.TypedArrays`,
* `ES2018.Intl`,
* `ES2018.Promise`,
* `ES2018.RegExp`,
* `ESNext.AsyncIterable`,
* `ESNext.Array`,
* `ESNext.Intl`,
* `ESNext.Symbol`.
* Note: If `--lib` is not specified a default list of libraries are injected. The default libraries injected are:
* for `--target ES5`: `DOM, ES5, ScriptHost`; for `--target ES6`: `DOM, ES6, DOM.Iterable, ScriptHost`.
*/
"lib": [
"ES2018",
],
/* Print names of generated files part of the compilation. */
// "listEmittedFiles": false,
/* Print names of files part of the compilation. */
// "listFiles": false,
/*
* The locale to use to show error messages, e.g. `en-us`. Possible values are:
* English (US): `en`, Czech: `cs`, German: `de`, Spanish: `es`, French: `fr`, Italian: `it`, Japanese: `ja`,
* Korean: `ko`, Polish: `pl`, Portuguese (Brazil): `pt-BR`, Russian: `ru`, Turkish: `tr`,
* Simplified Chinese: `zh-CN`, Traditional Chinese: `zh-TW`.
*/
// "locale": "",
/*
* Specifies the location where debugger should locate map files instead of generated locations. Use this flag if
* the .map files will be located at run-time in a different location than the .js files. The location specified
* will be embedded in the sourceMap to direct the debugger where the map files will be located.
*/
// "mapRoot": "",
/*
* The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with
* `--allowJs`.
*/
// "maxNodeModuleJsDepth": 0,
/*
* Specify module code generation: `None`, `CommonJS`, `AMD`, `System`, `UMD`, `ES6`, `ES2015` or `ESNext`.
* Only `AMD` and `System` can be used in conjunction with `--outFile`.
* `ES6` and `ES2015` values may be used when targeting `ES5` or lower.
*/
"module": "CommonJS",
/*
* Determine how modules get resolved. Either `Node` for Node.js/io.js style resolution, or `Classic`. See
* [Module Resolution documentation](https://www.typescriptlang.org/docs/handbook/module-resolution.html#module-resolution-strategies)
* for more details.
*/
// "moduleResolution": "",
/* Use the specified end of line sequence to be used when emitting files: `crlf` (Windows) or `lf` (Unix).” */
// "newLine": "",
/* Do not emit outputs. */
// "noEmit": false,
/* Do not generate custom helper functions like `__extends` in compiled output. */
// "noEmitHelpers": false,
/* Do not emit outputs if any errors were reported. */
"noEmitOnError": true,
/* Do not truncate error messages. */
// "noErrorTruncation": false,
/* Report errors for fallthrough cases in switch statement. */
// "noFallthroughCasesInSwitch": false,
/* Raise error on expressions and declarations with an implied `any` type. */
// "noImplicitAny": false,
/* Report error when not all code paths in function return a value. */
// "noImplicitReturns": false,
/* Raise error on `this` expressions with an implied `any` type. */
// "noImplicitThis": false,
/* Do not emit `"use strict";` directives in module output. */
// "noImplicitUseStrict": false,
/* Do not include the default library file (`lib.d.ts`). */
// "noLib": false,
/* Do not add triple-slash references or module import targets to the list of compiled files. */
// "noResolve": false,
/* Disable strict checking of generic signatures in function types. */
// "noStrictGenericChecks": false,
/* Report errors on unused locals. */
// "noUnusedLocals": false,
/* Report errors on unused parameters. */
// "noUnusedParameters": false,
/* Redirect output structure to the directory. */
"outDir": "./dist",
/* Concatenate and emit output to single file. The order of concatenation is determined by the list of files passed
* to the compiler on the command line along with triple-slash references and imports. See output file order
* documentation for more details.
*/
// "outFile": "",
/*
* List of path mapping entries for module names to locations relative to the `baseUrl`. See
* [Module Resolution documentation](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping)
* for more details.
*/
// "paths": { }
/*
* Do not erase const enum declarations in generated code. See
* [const enums documentation](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#94-constant-enum-declarations)
* for more details.
*/
// "preserveConstEnums": false,
/* Do not resolve symlinks to their real path; treat a symlinked file like a real one. */
// "preserveSymlinks": false,
/* Keep outdated console output in watch mode instead of clearing the screen. */
// "preserveWatchOutput": false,
/* Stylize errors and messages using color and context. */
// "pretty": true,
/* Remove all comments except copy-right header comments beginning with `/*!` */
// "removeComments": false,
/* Include modules imported with `.json` extension. */
// "resolveJsonModule": false,
/*
* Specifies the root directory of input files. Only use to control the output directory structure with `--outDir`.
*/
"rootDir": "./src",
/*
* List of root folders whose combined content represent the structure of the project at runtime. See
* [Module Resolution documentation](https://www.typescriptlang.org/docs/handbook/module-resolution.html#virtual-directories-with-rootdirs)
* for more details.
*/
// "rootDirs": []
/* Skip type checking of all declaration files (`*.d.ts`). */
// "skipLibCheck": false,
/* Generates corresponding `.map` file. */
"sourceMap": true,
/*
* Specifies the location where debugger should locate TypeScript files instead of source locations. Use this flag
* if the sources will be located at run-time in a different location than that at design-time. The location
* specified will be embedded in the sourceMap to direct the debugger where the source files will be located.
*/
// "sourceRoot": "",
/*
* Enable all strict type checking options.
* Enabling `--strict` enables `--noImplicitAny`, `--noImplicitThis`, `--alwaysStrict`, `--strictBindCallApply`,
* `--strictNullChecks`, `--strictFunctionTypes` and `--strictPropertyInitialization`.
*/
"strict": true,
/* Enable stricter checking of of the bind, call, and apply methods on functions. */
// "strictBindCallApply": false,
/* Disable bivariant parameter checking for function types. */
// "strictFunctionTypes": false,
/*
* Ensure non-undefined class properties are initialized in the constructor.
* This option requires `--strictNullChecks` be enabled in order to take effect.
*/
// "strictPropertyInitialization": false,
/*
* In strict null checking mode, the `null` and `undefined` values are not in the domain of every type and are only
* assignable to themselves and `any` (the one exception being that `undefined` is also assignable to `void`).
*/
// "strictNullChecks": false,
/* Do not emit declarations for code that has an `/** @internal *_/` JSDoc annotation. */
// "stripInternal": false,
/* Suppress excess property checks for object literals. */
// "suppressExcessPropertyErrors": false,
/*
* Suppress `--noImplicitAny` errors for indexing objects lacking index signatures.
* See [issue #1232](https://github.com/Microsoft/TypeScript/issues/1232#issuecomment-64510362) for more details.
*/
// "suppressImplicitAnyIndexErrors": false,
/*
* Specify ECMAScript target version: `ES3` (default), `ES5`, `ES6` / `ES2015`, `ES2016`, `ES2017` or `ESNext`.
* Note: `ESNext` targets latest supported [ES proposed features](https://github.com/tc39/proposals).
*/
"target": "ES2015",
/* Report module resolution log messages. */
// "traceResolution": false,
/*
* List of names of type definitions to include. See
* [@types, –typeRoots and –types](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types)
* for more details.
*/
// "types": [],
/*
* List of folders to include type definitions from. See
* [@types, –typeRoots and –types](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types)
* for more details.
*/
// "typeRoots": [],
/*
* Run the compiler in watch mode. Watch input files and trigger recompilation on changes.
* The implementation of watching files and directories can be configured using environment variable.
* See [configuring watch](https://www.typescriptlang.org/docs/handbook/configuring-watch.html) for more details.
*/
// "watch": false,
},
}