UNPKG

55.6 kBJSONView Raw
1{
2 "title": "JSON schema for the TypeScript compiler's configuration file",
3 "$schema": "http://json-schema.org/draft-04/schema#",
4 "id": "https://json.schemastore.org/tsconfig",
5 "definitions": {
6 "//": {
7 "explainer": "https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#overview",
8 "reference": "https://www.typescriptlang.org/tsconfig",
9 "reference metadata": "https://github.com/microsoft/TypeScript-Website/blob/v2/packages/tsconfig-reference/scripts/tsconfigRules.ts"
10 },
11 "filesDefinition": {
12 "properties": {
13 "files": {
14 "description": "If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included.",
15 "type": "array",
16 "uniqueItems": true,
17 "items": {
18 "type": "string"
19 }
20 }
21 }
22 },
23 "excludeDefinition": {
24 "properties": {
25 "exclude": {
26 "description": "Specifies a list of files to be excluded from compilation. The 'exclude' property only affects the files included via the 'include' property and not the 'files' property. Glob patterns require TypeScript version 2.0 or later.",
27 "type": "array",
28 "uniqueItems": true,
29 "items": {
30 "type": "string"
31 }
32 }
33 }
34 },
35 "includeDefinition": {
36 "properties": {
37 "include": {
38 "description": "Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later.",
39 "type": "array",
40 "uniqueItems": true,
41 "items": {
42 "type": "string"
43 }
44 }
45 }
46 },
47 "compileOnSaveDefinition": {
48 "properties": {
49 "compileOnSave": {
50 "description": "Enable Compile-on-Save for this project.",
51 "type": "boolean"
52 }
53 }
54 },
55 "extendsDefinition": {
56 "properties": {
57 "extends": {
58 "description": "Path to base configuration file to inherit from. Requires TypeScript version 2.1 or later.",
59 "type": "string"
60 }
61 }
62 },
63 "compilerOptionsDefinition": {
64 "properties": {
65 "compilerOptions": {
66 "type": "object",
67 "description": "Instructs the TypeScript compiler how to compile .ts files.",
68 "properties": {
69 "charset": {
70 "description": "No longer supported. In early versions, manually set the text encoding for reading files.",
71 "type": "string",
72 "markdownDescription": "No longer supported. In early versions, manually set the text encoding for reading files.\n\nSee more: https://www.typescriptlang.org/tsconfig#charset"
73 },
74 "composite": {
75 "description": "Enable constraints that allow a TypeScript project to be used with project references.",
76 "type": "boolean",
77 "default": true,
78 "markdownDescription": "Enable constraints that allow a TypeScript project to be used with project references.\n\nSee more: https://www.typescriptlang.org/tsconfig#composite"
79 },
80 "declaration": {
81 "description": "Generate .d.ts files from TypeScript and JavaScript files in your project.",
82 "type": "boolean",
83 "default": false,
84 "markdownDescription": "Generate .d.ts files from TypeScript and JavaScript files in your project.\n\nSee more: https://www.typescriptlang.org/tsconfig#declaration"
85 },
86 "declarationDir": {
87 "description": "Specify the output directory for generated declaration files.",
88 "type": [
89 "string",
90 "null"
91 ],
92 "markdownDescription": "Specify the output directory for generated declaration files.\n\nSee more: https://www.typescriptlang.org/tsconfig#declarationDir"
93 },
94 "diagnostics": {
95 "description": "Output compiler performance information after building.",
96 "type": "boolean",
97 "markdownDescription": "Output compiler performance information after building.\n\nSee more: https://www.typescriptlang.org/tsconfig#diagnostics"
98 },
99 "disableReferencedProjectLoad": {
100 "description": "Reduce the number of projects loaded automatically by TypeScript.",
101 "type": "boolean",
102 "markdownDescription": "Reduce the number of projects loaded automatically by TypeScript.\n\nSee more: https://www.typescriptlang.org/tsconfig#disableReferencedProjectLoad"
103 },
104 "noPropertyAccessFromIndexSignature": {
105 "description": "Enforces using indexed accessors for keys declared using an indexed type",
106 "type": "boolean",
107 "markdownDescription": "Enforces using indexed accessors for keys declared using an indexed type\n\nSee more: https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature"
108 },
109 "emitBOM": {
110 "description": "Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.",
111 "type": "boolean",
112 "default": false,
113 "markdownDescription": "Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.\n\nSee more: https://www.typescriptlang.org/tsconfig#emitBOM"
114 },
115 "emitDeclarationOnly": {
116 "description": "Only output d.ts files and not JavaScript files.",
117 "type": "boolean",
118 "default": false,
119 "markdownDescription": "Only output d.ts files and not JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#emitDeclarationOnly"
120 },
121 "incremental": {
122 "description": "Save .tsbuildinfo files to allow for incremental compilation of projects.",
123 "type": "boolean",
124 "markdownDescription": "Save .tsbuildinfo files to allow for incremental compilation of projects.\n\nSee more: https://www.typescriptlang.org/tsconfig#incremental"
125 },
126 "tsBuildInfoFile": {
127 "description": "Specify the folder for .tsbuildinfo incremental compilation files.",
128 "default": ".tsbuildinfo",
129 "type": "string",
130 "markdownDescription": "Specify the folder for .tsbuildinfo incremental compilation files.\n\nSee more: https://www.typescriptlang.org/tsconfig#tsBuildInfoFile"
131 },
132 "inlineSourceMap": {
133 "description": "Include sourcemap files inside the emitted JavaScript.",
134 "type": "boolean",
135 "default": false,
136 "markdownDescription": "Include sourcemap files inside the emitted JavaScript.\n\nSee more: https://www.typescriptlang.org/tsconfig#inlineSourceMap"
137 },
138 "inlineSources": {
139 "description": "Include source code in the sourcemaps inside the emitted JavaScript.",
140 "type": "boolean",
141 "default": false,
142 "markdownDescription": "Include source code in the sourcemaps inside the emitted JavaScript.\n\nSee more: https://www.typescriptlang.org/tsconfig#inlineSources"
143 },
144 "jsx": {
145 "description": "Specify what JSX code is generated.",
146 "enum": [
147 "preserve",
148 "react",
149 "react-jsx",
150 "react-jsxdev",
151 "react-native"
152 ]
153 },
154 "reactNamespace": {
155 "description": "Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.",
156 "type": "string",
157 "default": "React",
158 "markdownDescription": "Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.\n\nSee more: https://www.typescriptlang.org/tsconfig#reactNamespace"
159 },
160 "jsxFactory": {
161 "description": "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'",
162 "type": "string",
163 "default": "React.createElement",
164 "markdownDescription": "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'\n\nSee more: https://www.typescriptlang.org/tsconfig#jsxFactory"
165 },
166 "jsxFragmentFactory": {
167 "description": "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.",
168 "type": "string",
169 "default": "React.Fragment",
170 "markdownDescription": "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.\n\nSee more: https://www.typescriptlang.org/tsconfig#jsxFragmentFactory"
171 },
172 "jsxImportSource": {
173 "description": "Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`",
174 "type": "string",
175 "default": "react",
176 "markdownDescription": "Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`\n\nSee more: https://www.typescriptlang.org/tsconfig#jsxImportSource"
177 },
178 "listFiles": {
179 "description": "Print all of the files read during the compilation.",
180 "type": "boolean",
181 "default": false,
182 "markdownDescription": "Print all of the files read during the compilation.\n\nSee more: https://www.typescriptlang.org/tsconfig#listFiles"
183 },
184 "mapRoot": {
185 "description": "Specify the location where debugger should locate map files instead of generated locations.",
186 "type": "string",
187 "markdownDescription": "Specify the location where debugger should locate map files instead of generated locations.\n\nSee more: https://www.typescriptlang.org/tsconfig#mapRoot"
188 },
189 "module": {
190 "description": "Specify what module code is generated.",
191 "type": "string",
192 "anyOf": [
193 {
194 "enum": [
195 "CommonJS",
196 "AMD",
197 "System",
198 "UMD",
199 "ES6",
200 "ES2015",
201 "ES2020",
202 "ESNext",
203 "None"
204 ]
205 },
206 {
207 "pattern": "^([Cc][Oo][Mm][Mm][Oo][Nn][Jj][Ss]|[AaUu][Mm][Dd]|[Ss][Yy][Ss][Tt][Ee][Mm]|[Ee][Ss]([356]|201[567]|2020|[Nn][Ee][Xx][Tt])|[Nn][Oo][Nn][Ee])$"
208 }
209 ],
210 "markdownDescription": "Specify what module code is generated.\n\nSee more: https://www.typescriptlang.org/tsconfig#module"
211 },
212 "moduleResolution": {
213 "description": "Specify how TypeScript looks up a file from a given module specifier.",
214 "type": "string",
215 "anyOf": [
216 {
217 "enum": [
218 "Classic",
219 "Node"
220 ]
221 },
222 {
223 "pattern": "^(([Nn]ode)|([Cc]lassic))$"
224 }
225 ],
226 "default": "classic",
227 "markdownDescription": "Specify how TypeScript looks up a file from a given module specifier.\n\nSee more: https://www.typescriptlang.org/tsconfig#moduleResolution"
228 },
229 "newLine": {
230 "description": "Set the newline character for emitting files.",
231 "type": "string",
232 "anyOf": [
233 {
234 "enum": [
235 "crlf",
236 "lf"
237 ]
238 },
239 {
240 "pattern": "^(CRLF|LF|crlf|lf)$"
241 }
242 ],
243 "markdownDescription": "Set the newline character for emitting files.\n\nSee more: https://www.typescriptlang.org/tsconfig#newLine"
244 },
245 "noEmit": {
246 "description": "Disable emitting file from a compilation.",
247 "type": "boolean",
248 "default": false,
249 "markdownDescription": "Disable emitting file from a compilation.\n\nSee more: https://www.typescriptlang.org/tsconfig#noEmit"
250 },
251 "noEmitHelpers": {
252 "description": "Disable generating custom helper functions like `__extends` in compiled output.",
253 "type": "boolean",
254 "default": false,
255 "markdownDescription": "Disable generating custom helper functions like `__extends` in compiled output.\n\nSee more: https://www.typescriptlang.org/tsconfig#noEmitHelpers"
256 },
257 "noEmitOnError": {
258 "description": "Disable emitting files if any type checking errors are reported.",
259 "type": "boolean",
260 "default": false,
261 "markdownDescription": "Disable emitting files if any type checking errors are reported.\n\nSee more: https://www.typescriptlang.org/tsconfig#noEmitOnError"
262 },
263 "noImplicitAny": {
264 "description": "Enable error reporting for expressions and declarations with an implied `any` type..",
265 "type": "boolean",
266 "markdownDescription": "Enable error reporting for expressions and declarations with an implied `any` type..\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitAny"
267 },
268 "noImplicitOverride": {
269 "description": "Enable error reporting when overriding a method without using the 'override' keyword. Requires TypeScript version 4.3 or later.",
270 "type": "boolean",
271 "markdownDescription": "Enable error reporting when overriding a method without using the `override` keyword. Requires TypeScript version 4.3 or later.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitOverride"
272 },
273 "noImplicitThis": {
274 "description": "Enable error reporting when `this` is given the type `any`.",
275 "type": "boolean",
276 "markdownDescription": "Enable error reporting when `this` is given the type `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitThis"
277 },
278 "noUnusedLocals": {
279 "description": "Enable error reporting when a local variables aren't read.",
280 "type": "boolean",
281 "default": false,
282 "markdownDescription": "Enable error reporting when a local variables aren't read.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedLocals"
283 },
284 "noUnusedParameters": {
285 "description": "Raise an error when a function parameter isn't read",
286 "type": "boolean",
287 "default": false,
288 "markdownDescription": "Raise an error when a function parameter isn't read\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedParameters"
289 },
290 "noLib": {
291 "description": "Disable including any library files, including the default lib.d.ts.",
292 "type": "boolean",
293 "default": false,
294 "markdownDescription": "Disable including any library files, including the default lib.d.ts.\n\nSee more: https://www.typescriptlang.org/tsconfig#noLib"
295 },
296 "noResolve": {
297 "description": "Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project.",
298 "type": "boolean",
299 "default": false,
300 "markdownDescription": "Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project.\n\nSee more: https://www.typescriptlang.org/tsconfig#noResolve"
301 },
302 "noStrictGenericChecks": {
303 "description": "Disable strict checking of generic signatures in function types.",
304 "type": "boolean",
305 "default": false,
306 "markdownDescription": "Disable strict checking of generic signatures in function types.\n\nSee more: https://www.typescriptlang.org/tsconfig#noStrictGenericChecks"
307 },
308 "skipDefaultLibCheck": {
309 "description": "Skip type checking .d.ts files that are included with TypeScript.",
310 "type": "boolean",
311 "default": false,
312 "markdownDescription": "Skip type checking .d.ts files that are included with TypeScript.\n\nSee more: https://www.typescriptlang.org/tsconfig#skipDefaultLibCheck"
313 },
314 "skipLibCheck": {
315 "description": "Skip type checking all .d.ts files.",
316 "type": "boolean",
317 "default": false,
318 "markdownDescription": "Skip type checking all .d.ts files.\n\nSee more: https://www.typescriptlang.org/tsconfig#skipLibCheck"
319 },
320 "outFile": {
321 "description": "Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.",
322 "type": "string",
323 "markdownDescription": "Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.\n\nSee more: https://www.typescriptlang.org/tsconfig#outFile"
324 },
325 "outDir": {
326 "description": "Specify an output folder for all emitted files.",
327 "type": "string",
328 "markdownDescription": "Specify an output folder for all emitted files.\n\nSee more: https://www.typescriptlang.org/tsconfig#outDir"
329 },
330 "preserveConstEnums": {
331 "description": "Disable erasing `const enum` declarations in generated code.",
332 "type": "boolean",
333 "default": false,
334 "markdownDescription": "Disable erasing `const enum` declarations in generated code.\n\nSee more: https://www.typescriptlang.org/tsconfig#preserveConstEnums"
335 },
336 "preserveSymlinks": {
337 "description": "Disable resolving symlinks to their realpath. This correlates to the same flag in node.",
338 "type": "boolean",
339 "default": false,
340 "markdownDescription": "Disable resolving symlinks to their realpath. This correlates to the same flag in node.\n\nSee more: https://www.typescriptlang.org/tsconfig#preserveSymlinks"
341 },
342 "preserveWatchOutput": {
343 "description": "Disable wiping the console in watch mode",
344 "type": "boolean",
345 "markdownDescription": "Disable wiping the console in watch mode\n\nSee more: https://www.typescriptlang.org/tsconfig#preserveWatchOutput"
346 },
347 "pretty": {
348 "description": "Enable color and formatting in output to make compiler errors easier to read",
349 "type": "boolean",
350 "default": true,
351 "markdownDescription": "Enable color and formatting in output to make compiler errors easier to read\n\nSee more: https://www.typescriptlang.org/tsconfig#pretty"
352 },
353 "removeComments": {
354 "description": "Disable emitting comments.",
355 "type": "boolean",
356 "default": false,
357 "markdownDescription": "Disable emitting comments.\n\nSee more: https://www.typescriptlang.org/tsconfig#removeComments"
358 },
359 "rootDir": {
360 "description": "Specify the root folder within your source files.",
361 "type": "string",
362 "markdownDescription": "Specify the root folder within your source files.\n\nSee more: https://www.typescriptlang.org/tsconfig#rootDir"
363 },
364 "isolatedModules": {
365 "description": "Ensure that each file can be safely transpiled without relying on other imports.",
366 "type": "boolean",
367 "default": false,
368 "markdownDescription": "Ensure that each file can be safely transpiled without relying on other imports.\n\nSee more: https://www.typescriptlang.org/tsconfig#isolatedModules"
369 },
370 "sourceMap": {
371 "description": "Create source map files for emitted JavaScript files.",
372 "type": "boolean",
373 "default": false,
374 "markdownDescription": "Create source map files for emitted JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#sourceMap"
375 },
376 "sourceRoot": {
377 "description": "Specify the root path for debuggers to find the reference source code.",
378 "type": "string",
379 "markdownDescription": "Specify the root path for debuggers to find the reference source code.\n\nSee more: https://www.typescriptlang.org/tsconfig#sourceRoot"
380 },
381 "suppressExcessPropertyErrors": {
382 "description": "Disable reporting of excess property errors during the creation of object literals.",
383 "type": "boolean",
384 "default": false,
385 "markdownDescription": "Disable reporting of excess property errors during the creation of object literals.\n\nSee more: https://www.typescriptlang.org/tsconfig#suppressExcessPropertyErrors"
386 },
387 "suppressImplicitAnyIndexErrors": {
388 "description": "Suppress `noImplicitAny` errors when indexing objects that lack index signatures.",
389 "type": "boolean",
390 "default": false,
391 "markdownDescription": "Suppress `noImplicitAny` errors when indexing objects that lack index signatures.\n\nSee more: https://www.typescriptlang.org/tsconfig#suppressImplicitAnyIndexErrors"
392 },
393 "stripInternal": {
394 "description": "Disable emitting declarations that have `@internal` in their JSDoc comments.",
395 "type": "boolean",
396 "markdownDescription": "Disable emitting declarations that have `@internal` in their JSDoc comments.\n\nSee more: https://www.typescriptlang.org/tsconfig#stripInternal"
397 },
398 "target": {
399 "description": "Set the JavaScript language version for emitted JavaScript and include compatible library declarations.",
400 "type": "string",
401 "default": "ES3",
402 "anyOf": [
403 {
404 "enum": [
405 "ES3",
406 "ES5",
407 "ES6",
408 "ES2015",
409 "ES2016",
410 "ES2017",
411 "ES2018",
412 "ES2019",
413 "ES2020",
414 "ESNext"
415 ]
416 },
417 {
418 "pattern": "^([Ee][Ss]([356]|(20(1[56789]|20))|[Nn][Ee][Xx][Tt]))$"
419 }
420 ],
421 "markdownDescription": "Set the JavaScript language version for emitted JavaScript and include compatible library declarations.\n\nSee more: https://www.typescriptlang.org/tsconfig#target"
422 },
423 "watch": {
424 "description": "Watch input files.",
425 "type": "boolean"
426 },
427 "fallbackPolling": {
428 "description": "Specify what approach the watcher should use if the system runs out of native file watchers.",
429 "enum": [
430 "fixedPollingInterval",
431 "priorityPollingInterval",
432 "dynamicPriorityPolling"
433 ]
434 },
435 "watchDirectory": {
436 "description": "Specify how directories are watched on systems that lack recursive file-watching functionality.",
437 "enum": [
438 "useFsEvents",
439 "fixedPollingInterval",
440 "dynamicPriorityPolling"
441 ],
442 "default": "useFsEvents"
443 },
444 "watchFile": {
445 "description": "Specify how the TypeScript watch mode works.",
446 "enum": [
447 "fixedPollingInterval",
448 "priorityPollingInterval",
449 "dynamicPriorityPolling",
450 "useFsEvents",
451 "useFsEventsOnParentDirectory"
452 ],
453 "default": "useFsEvents"
454 },
455 "experimentalDecorators": {
456 "description": "Enable experimental support for TC39 stage 2 draft decorators.",
457 "type": "boolean",
458 "markdownDescription": "Enable experimental support for TC39 stage 2 draft decorators.\n\nSee more: https://www.typescriptlang.org/tsconfig#experimentalDecorators"
459 },
460 "emitDecoratorMetadata": {
461 "description": "Emit design-type metadata for decorated declarations in source files.",
462 "type": "boolean",
463 "markdownDescription": "Emit design-type metadata for decorated declarations in source files.\n\nSee more: https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata"
464 },
465 "allowUnusedLabels": {
466 "description": "Disable error reporting for unused labels.",
467 "type": "boolean",
468 "markdownDescription": "Disable error reporting for unused labels.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowUnusedLabels"
469 },
470 "noImplicitReturns": {
471 "description": "Enable error reporting for codepaths that do not explicitly return in a function.",
472 "type": "boolean",
473 "default": false,
474 "markdownDescription": "Enable error reporting for codepaths that do not explicitly return in a function.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitReturns"
475 },
476 "noUncheckedIndexedAccess": {
477 "description": "Add `undefined` to a type when accessed using an index.",
478 "type": "boolean",
479 "markdownDescription": "Add `undefined` to a type when accessed using an index.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess"
480 },
481 "noFallthroughCasesInSwitch": {
482 "description": "Enable error reporting for fallthrough cases in switch statements.",
483 "type": "boolean",
484 "default": false,
485 "markdownDescription": "Enable error reporting for fallthrough cases in switch statements.\n\nSee more: https://www.typescriptlang.org/tsconfig#noFallthroughCasesInSwitch"
486 },
487 "allowUnreachableCode": {
488 "description": "Disable error reporting for unreachable code.",
489 "type": "boolean",
490 "markdownDescription": "Disable error reporting for unreachable code.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowUnreachableCode"
491 },
492 "forceConsistentCasingInFileNames": {
493 "description": "Ensure that casing is correct in imports.",
494 "type": "boolean",
495 "default": false,
496 "markdownDescription": "Ensure that casing is correct in imports.\n\nSee more: https://www.typescriptlang.org/tsconfig#forceConsistentCasingInFileNames"
497 },
498 "generateCpuProfile": {
499 "description": "Emit a v8 CPU profile of the compiler run for debugging.",
500 "type": "string",
501 "default": "profile.cpuprofile",
502 "markdownDescription": "Emit a v8 CPU profile of the compiler run for debugging.\n\nSee more: https://www.typescriptlang.org/tsconfig#generateCpuProfile"
503 },
504 "baseUrl": {
505 "description": "Specify the base directory to resolve non-relative module names.",
506 "type": "string",
507 "markdownDescription": "Specify the base directory to resolve non-relative module names.\n\nSee more: https://www.typescriptlang.org/tsconfig#baseUrl"
508 },
509 "paths": {
510 "description": "Specify a set of entries that re-map imports to additional lookup locations.",
511 "type": "object",
512 "additionalProperties": {
513 "type": "array",
514 "uniqueItems": true,
515 "items": {
516 "type": "string",
517 "description": "Path mapping to be computed relative to baseUrl option."
518 }
519 },
520 "markdownDescription": "Specify a set of entries that re-map imports to additional lookup locations.\n\nSee more: https://www.typescriptlang.org/tsconfig#paths"
521 },
522 "plugins": {
523 "description": "Specify a list of language service plugins to include.",
524 "type": "array",
525 "items": {
526 "type": "object",
527 "properties": {
528 "name": {
529 "description": "Plugin name.",
530 "type": "string"
531 }
532 }
533 },
534 "markdownDescription": "Specify a list of language service plugins to include.\n\nSee more: https://www.typescriptlang.org/tsconfig#plugins"
535 },
536 "rootDirs": {
537 "description": "Allow multiple folders to be treated as one when resolving modules.",
538 "type": "array",
539 "uniqueItems": true,
540 "items": {
541 "type": "string"
542 },
543 "markdownDescription": "Allow multiple folders to be treated as one when resolving modules.\n\nSee more: https://www.typescriptlang.org/tsconfig#rootDirs"
544 },
545 "typeRoots": {
546 "description": "Specify multiple folders that act like `./node_modules/@types`.",
547 "type": "array",
548 "uniqueItems": true,
549 "items": {
550 "type": "string"
551 },
552 "markdownDescription": "Specify multiple folders that act like `./node_modules/@types`.\n\nSee more: https://www.typescriptlang.org/tsconfig#typeRoots"
553 },
554 "types": {
555 "description": "Specify type package names to be included without being referenced in a source file.",
556 "type": "array",
557 "uniqueItems": true,
558 "items": {
559 "type": "string"
560 },
561 "markdownDescription": "Specify type package names to be included without being referenced in a source file.\n\nSee more: https://www.typescriptlang.org/tsconfig#types"
562 },
563 "traceResolution": {
564 "description": "Log paths used during the `moduleResolution` process.",
565 "type": "boolean",
566 "default": false,
567 "markdownDescription": "Log paths used during the `moduleResolution` process.\n\nSee more: https://www.typescriptlang.org/tsconfig#traceResolution"
568 },
569 "allowJs": {
570 "description": "Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.",
571 "type": "boolean",
572 "default": false,
573 "markdownDescription": "Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowJs"
574 },
575 "noErrorTruncation": {
576 "description": "Disable truncating types in error messages.",
577 "type": "boolean",
578 "default": false,
579 "markdownDescription": "Disable truncating types in error messages.\n\nSee more: https://www.typescriptlang.org/tsconfig#noErrorTruncation"
580 },
581 "allowSyntheticDefaultImports": {
582 "description": "Allow 'import x from y' when a module doesn't have a default export.",
583 "type": "boolean",
584 "markdownDescription": "Allow 'import x from y' when a module doesn't have a default export.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowSyntheticDefaultImports"
585 },
586 "noImplicitUseStrict": {
587 "description": "Disable adding 'use strict' directives in emitted JavaScript files.",
588 "type": "boolean",
589 "default": false,
590 "markdownDescription": "Disable adding 'use strict' directives in emitted JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitUseStrict"
591 },
592 "listEmittedFiles": {
593 "description": "Print the names of emitted files after a compilation.",
594 "type": "boolean",
595 "default": false,
596 "markdownDescription": "Print the names of emitted files after a compilation.\n\nSee more: https://www.typescriptlang.org/tsconfig#listEmittedFiles"
597 },
598 "disableSizeLimit": {
599 "description": "Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.",
600 "type": "boolean",
601 "default": false,
602 "markdownDescription": "Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.\n\nSee more: https://www.typescriptlang.org/tsconfig#disableSizeLimit"
603 },
604 "lib": {
605 "description": "Specify a set of bundled library declaration files that describe the target runtime environment.",
606 "type": "array",
607 "uniqueItems": true,
608 "items": {
609 "type": "string",
610 "anyOf": [
611 {
612 "enum": [
613 "ES5",
614 "ES6",
615 "ES2015",
616 "ES2015.Collection",
617 "ES2015.Core",
618 "ES2015.Generator",
619 "ES2015.Iterable",
620 "ES2015.Promise",
621 "ES2015.Proxy",
622 "ES2015.Reflect",
623 "ES2015.Symbol.WellKnown",
624 "ES2015.Symbol",
625 "ES2016",
626 "ES2016.Array.Include",
627 "ES2017",
628 "ES2017.Intl",
629 "ES2017.Object",
630 "ES2017.SharedMemory",
631 "ES2017.String",
632 "ES2017.TypedArrays",
633 "ES2018",
634 "ES2018.AsyncGenerator",
635 "ES2018.AsyncIterable",
636 "ES2018.Intl",
637 "ES2018.Promise",
638 "ES2018.Regexp",
639 "ES2019",
640 "ES2019.Array",
641 "ES2019.Object",
642 "ES2019.String",
643 "ES2019.Symbol",
644 "ES2020",
645 "ES2020.BigInt",
646 "ES2020.Promise",
647 "ES2020.String",
648 "ES2020.Symbol.WellKnown",
649 "ESNext",
650 "ESNext.Array",
651 "ESNext.AsyncIterable",
652 "ESNext.BigInt",
653 "ESNext.Intl",
654 "ESNext.Promise",
655 "ESNext.String",
656 "ESNext.Symbol",
657 "DOM",
658 "DOM.Iterable",
659 "ScriptHost",
660 "WebWorker",
661 "WebWorker.ImportScripts"
662 ]
663 },
664 {
665 "pattern": "^[Ee][Ss]5|[Ee][Ss]6|[Ee][Ss]7$"
666 },
667 {
668 "pattern": "^[Ee][Ss]2015(\\.([Cc][Oo][Ll][Ll][Ee][Cc][Tt][Ii][Oo][Nn]|[Cc][Oo][Rr][Ee]|[Gg][Ee][Nn][Ee][Rr][Aa][Tt][Oo][Rr]|[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]|[Pp][Rr][Oo][Mm][Ii][Ss][Ee]|[Pp][Rr][Oo][Xx][Yy]|[Rr][Ee][Ff][Ll][Ee][Cc][Tt]|[Ss][Yy][Mm][Bb][Oo][Ll].[Ww][Ee][Ll][Ll][Kk][Nn][Oo][Ww][Nn]|[Ss][Yy][Mm][Bb][Oo][Ll]))?$"
669 },
670 {
671 "pattern": "^[Ee][Ss]2016(\\.[Aa][Rr][Rr][Aa][Yy].[Ii][Nn][Cc][Ll][Uu][Dd][Ee])?$"
672 },
673 {
674 "pattern": "^[Ee][Ss]2017(\\.([Ii][Nn][Tt][Ll]|[Oo][Bb][Jj][Ee][Cc][Tt]|[Ss][Hh][Aa][Rr][Ee][Dd][Mm][Ee][Mm][Oo][Rr][Yy]|[Ss][Tt][Rr][Ii][Nn][Gg]|[Tt][Yy][Pp][Ee][Dd][Aa][Rr][Rr][Aa][Yy][Ss]))?$"
675 },
676 {
677 "pattern": "^[Ee][Ss]2018(\\.([Aa][Ss][Yy][Nn][Cc][Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]|[Ii][Nn][Tt][Ll]|[Pp][Rr][Oo][Mm][Ii][Ss][Ee]|[Rr][Ee][Gg][Ee][Xx][Pp]))?$"
678 },
679 {
680 "pattern": "^[Ee][Ss]2019(\\.([Aa][Rr][Rr][Aa][Yy]|[Oo][Bb][Jj][Ee][Cc][Tt]|[Ss][Tt][Rr][Ii][Nn][Gg]|[Ss][Yy][Mm][Bb][Oo][Ll]))?$"
681 },
682 {
683 "pattern": "^[Ee][Ss]2020(\\.([Bb][Ii][Gg][Ii][Nn][Tt]|[Pp][Rr][Oo][Mm][Ii][Ss][Ee]|[Ss][Tt][Rr][Ii][Nn][Gg]|[Ss][Yy][Mm][Bb][Oo][Ll].[Ww][Ee][Ll][Ll][Kk][Nn][Oo][Ww][Nn]))?$"
684 },
685 {
686 "pattern": "^[Ee][Ss][Nn][Ee][Xx][Tt](\\.([Aa][Rr][Rr][Aa][Yy]|[Aa][Ss][Yy][Nn][Cc][Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]|[Bb][Ii][Gg][Ii][Nn][Tt]|[Ii][Nn][Tt][Ll]|[Ss][Yy][Mm][Bb][Oo][Ll]))?$"
687 },
688 {
689 "pattern": "^[Dd][Oo][Mm](\\.[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee])?$"
690 },
691 {
692 "pattern": "^[Ss][Cc][Rr][Ii][Pp][Tt][Hh][Oo][Ss][Tt]$"
693 },
694 {
695 "pattern": "^[Ww][Ee][Bb][Ww][Oo][Rr][Kk][Ee][Rr](\\.[Ii][Mm][Pp][Oo][Rr][Tt][Ss][Cc][Rr][Ii][Pp][Tt][Ss])?$"
696 }
697 ]
698 },
699 "markdownDescription": "Specify a set of bundled library declaration files that describe the target runtime environment.\n\nSee more: https://www.typescriptlang.org/tsconfig#lib"
700 },
701 "strictNullChecks": {
702 "description": "When type checking, take into account `null` and `undefined`.",
703 "type": "boolean",
704 "default": false,
705 "markdownDescription": "When type checking, take into account `null` and `undefined`.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictNullChecks"
706 },
707 "maxNodeModuleJsDepth": {
708 "description": "Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.",
709 "type": "number",
710 "default": 0,
711 "markdownDescription": "Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.\n\nSee more: https://www.typescriptlang.org/tsconfig#maxNodeModuleJsDepth"
712 },
713 "importHelpers": {
714 "description": "Allow importing helper functions from tslib once per project, instead of including them per-file.",
715 "type": "boolean",
716 "default": false,
717 "markdownDescription": "Allow importing helper functions from tslib once per project, instead of including them per-file.\n\nSee more: https://www.typescriptlang.org/tsconfig#importHelpers"
718 },
719 "importsNotUsedAsValues": {
720 "description": "Specify emit/checking behavior for imports that are only used for types.",
721 "default": "remove",
722 "enum": [
723 "remove",
724 "preserve",
725 "error"
726 ]
727 },
728 "alwaysStrict": {
729 "description": "Ensure 'use strict' is always emitted.",
730 "type": "boolean",
731 "markdownDescription": "Ensure 'use strict' is always emitted.\n\nSee more: https://www.typescriptlang.org/tsconfig#alwaysStrict"
732 },
733 "strict": {
734 "description": "Enable all strict type checking options.",
735 "type": "boolean",
736 "default": false,
737 "markdownDescription": "Enable all strict type checking options.\n\nSee more: https://www.typescriptlang.org/tsconfig#strict"
738 },
739 "strictBindCallApply": {
740 "description": "Check that the arguments for `bind`, `call`, and `apply` methods match the original function.",
741 "type": "boolean",
742 "default": false,
743 "markdownDescription": "Check that the arguments for `bind`, `call`, and `apply` methods match the original function.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBindCallApply"
744 },
745 "downlevelIteration": {
746 "description": "Emit more compliant, but verbose and less performant JavaScript for iteration.",
747 "type": "boolean",
748 "default": false,
749 "markdownDescription": "Emit more compliant, but verbose and less performant JavaScript for iteration.\n\nSee more: https://www.typescriptlang.org/tsconfig#downlevelIteration"
750 },
751 "checkJs": {
752 "description": "Enable error reporting in type-checked JavaScript files.",
753 "type": "boolean",
754 "default": false,
755 "markdownDescription": "Enable error reporting in type-checked JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#checkJs"
756 },
757 "strictFunctionTypes": {
758 "description": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.",
759 "type": "boolean",
760 "default": false,
761 "markdownDescription": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictFunctionTypes"
762 },
763 "strictPropertyInitialization": {
764 "description": "Check for class properties that are declared but not set in the constructor.",
765 "type": "boolean",
766 "default": false,
767 "markdownDescription": "Check for class properties that are declared but not set in the constructor.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictPropertyInitialization"
768 },
769 "esModuleInterop": {
770 "description": "Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.",
771 "type": "boolean",
772 "default": false,
773 "markdownDescription": "Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.\n\nSee more: https://www.typescriptlang.org/tsconfig#esModuleInterop"
774 },
775 "allowUmdGlobalAccess": {
776 "description": "Allow accessing UMD globals from modules.",
777 "type": "boolean",
778 "default": false,
779 "markdownDescription": "Allow accessing UMD globals from modules.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowUmdGlobalAccess"
780 },
781 "keyofStringsOnly": {
782 "description": "Make keyof only return strings instead of string, numbers or symbols. Legacy option.",
783 "type": "boolean",
784 "default": false,
785 "markdownDescription": "Make keyof only return strings instead of string, numbers or symbols. Legacy option.\n\nSee more: https://www.typescriptlang.org/tsconfig#keyofStringsOnly"
786 },
787 "useDefineForClassFields": {
788 "description": "Emit ECMAScript-standard-compliant class fields.",
789 "type": "boolean",
790 "default": false,
791 "markdownDescription": "Emit ECMAScript-standard-compliant class fields.\n\nSee more: https://www.typescriptlang.org/tsconfig#useDefineForClassFields"
792 },
793 "declarationMap": {
794 "description": "Create sourcemaps for d.ts files.",
795 "type": "boolean",
796 "default": false,
797 "markdownDescription": "Create sourcemaps for d.ts files.\n\nSee more: https://www.typescriptlang.org/tsconfig#declarationMap"
798 },
799 "resolveJsonModule": {
800 "description": "Enable importing .json files",
801 "type": "boolean",
802 "default": false,
803 "markdownDescription": "Enable importing .json files\n\nSee more: https://www.typescriptlang.org/tsconfig#resolveJsonModule"
804 },
805 "assumeChangesOnlyAffectDirectDependencies": {
806 "description": "Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.",
807 "type": "boolean",
808 "markdownDescription": "Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.\n\nSee more: https://www.typescriptlang.org/tsconfig#assumeChangesOnlyAffectDirectDependencies"
809 },
810 "extendedDiagnostics": {
811 "description": "Output more detailed compiler performance information after building.",
812 "type": "boolean",
813 "default": false,
814 "markdownDescription": "Output more detailed compiler performance information after building.\n\nSee more: https://www.typescriptlang.org/tsconfig#extendedDiagnostics"
815 },
816 "listFilesOnly": {
817 "description": "Print names of files that are part of the compilation and then stop processing.",
818 "type": "boolean"
819 },
820 "disableSourceOfProjectReferenceRedirect": {
821 "description": "Disable preferring source files instead of declaration files when referencing composite projects",
822 "type": "boolean",
823 "markdownDescription": "Disable preferring source files instead of declaration files when referencing composite projects\n\nSee more: https://www.typescriptlang.org/tsconfig#disableSourceOfProjectReferenceRedirect"
824 },
825 "disableSolutionSearching": {
826 "description": "Opt a project out of multi-project reference checking when editing.",
827 "type": "boolean",
828 "markdownDescription": "Opt a project out of multi-project reference checking when editing.\n\nSee more: https://www.typescriptlang.org/tsconfig#disableSolutionSearching"
829 }
830 }
831 }
832 }
833 },
834 "typeAcquisitionDefinition": {
835 "properties": {
836 "typeAcquisition": {
837 "type": "object",
838 "description": "Auto type (.d.ts) acquisition options for this project. Requires TypeScript version 2.1 or later.",
839 "properties": {
840 "enable": {
841 "description": "Enable auto type acquisition",
842 "type": "boolean",
843 "default": false
844 },
845 "include": {
846 "description": "Specifies a list of type declarations to be included in auto type acquisition. Ex. [\"jquery\", \"lodash\"]",
847 "type": "array",
848 "uniqueItems": true,
849 "items": {
850 "type": "string"
851 }
852 },
853 "exclude": {
854 "description": "Specifies a list of type declarations to be excluded from auto type acquisition. Ex. [\"jquery\", \"lodash\"]",
855 "type": "array",
856 "uniqueItems": true,
857 "items": {
858 "type": "string"
859 }
860 }
861 }
862 }
863 }
864 },
865 "referencesDefinition": {
866 "properties": {
867 "references": {
868 "type": "array",
869 "uniqueItems": true,
870 "description": "Referenced projects. Requires TypeScript version 3.0 or later.",
871 "items": {
872 "type": "object",
873 "description": "Project reference.",
874 "properties": {
875 "path": {
876 "type": "string",
877 "description": "Path to referenced tsconfig or to folder containing tsconfig."
878 }
879 }
880 }
881 }
882 }
883 },
884 "tsNodeDefinition": {
885 "properties": {
886 "ts-node": {
887 "description": "ts-node options. See also: https://github.com/TypeStrong/ts-node#configuration-options\n\nts-node offers TypeScript execution and REPL for node.js, with source map support.",
888 "properties": {
889 "compiler": {
890 "default": "typescript",
891 "description": "Specify a custom TypeScript compiler.",
892 "type": "string"
893 },
894 "compilerHost": {
895 "default": false,
896 "description": "Use TypeScript's compiler host API instead of the language service API.",
897 "type": "boolean"
898 },
899 "compilerOptions": {
900 "additionalProperties": true,
901 "allOf": [
902 {
903 "$ref": "#/definitions/compilerOptionsDefinition/properties/compilerOptions"
904 }
905 ],
906 "description": "JSON object to merge with TypeScript `compilerOptions`.",
907 "properties": {},
908 "type": "object"
909 },
910 "emit": {
911 "default": false,
912 "description": "Emit output files into `.ts-node` directory.",
913 "type": "boolean"
914 },
915 "files": {
916 "default": false,
917 "description": "Load \"files\" and \"include\" from `tsconfig.json` on startup.\n\nDefault is to override `tsconfig.json` \"files\" and \"include\" to only include the entrypoint script.",
918 "type": "boolean"
919 },
920 "ignore": {
921 "default": [
922 "(?:^|/)node_modules/"
923 ],
924 "description": "Paths which should not be compiled.\n\nEach string in the array is converted to a regular expression via `new RegExp()` and tested against source paths prior to compilation.\n\nSource paths are normalized to posix-style separators, relative to the directory containing `tsconfig.json` or to cwd if no `tsconfig.json` is loaded.\n\nDefault is to ignore all node_modules subdirectories.",
925 "items": {
926 "type": "string"
927 },
928 "type": "array"
929 },
930 "ignoreDiagnostics": {
931 "description": "Ignore TypeScript warnings by diagnostic code.",
932 "items": {
933 "type": [
934 "string",
935 "number"
936 ]
937 },
938 "type": "array"
939 },
940 "logError": {
941 "default": false,
942 "description": "Logs TypeScript errors to stderr instead of throwing exceptions.",
943 "type": "boolean"
944 },
945 "preferTsExts": {
946 "default": false,
947 "description": "Re-order file extensions so that TypeScript imports are preferred.\n\nFor example, when both `index.js` and `index.ts` exist, enabling this option causes `require('./index')` to resolve to `index.ts` instead of `index.js`",
948 "type": "boolean"
949 },
950 "pretty": {
951 "default": false,
952 "description": "Use pretty diagnostic formatter.",
953 "type": "boolean"
954 },
955 "require": {
956 "description": "Modules to require, like node's `--require` flag.\n\nIf specified in `tsconfig.json`, the modules will be resolved relative to the `tsconfig.json` file.\n\nIf specified programmatically, each input string should be pre-resolved to an absolute path for\nbest results.",
957 "items": {
958 "type": "string"
959 },
960 "type": "array"
961 },
962 "skipIgnore": {
963 "default": false,
964 "description": "Skip ignore check, so that compilation will be attempted for all files with matching extensions.",
965 "type": "boolean"
966 },
967 "transpileOnly": {
968 "default": false,
969 "description": "Use TypeScript's faster `transpileModule`.",
970 "type": "boolean"
971 },
972 "transpiler": {
973 "anyOf": [
974 {
975 "additionalItems": {
976 "anyOf": [
977 {
978 "type": "string"
979 },
980 {
981 "additionalProperties": true,
982 "properties": {},
983 "type": "object"
984 }
985 ]
986 },
987 "items": [
988 {
989 "type": "string"
990 },
991 {
992 "additionalProperties": true,
993 "properties": {},
994 "type": "object"
995 }
996 ],
997 "minItems": 2,
998 "type": "array"
999 },
1000 {
1001 "type": "string"
1002 }
1003 ],
1004 "description": "Specify a custom transpiler for use with transpileOnly"
1005 },
1006 "typeCheck": {
1007 "default": true,
1008 "description": "**DEPRECATED** Specify type-check is enabled (e.g. `transpileOnly == false`).",
1009 "type": "boolean"
1010 }
1011 },
1012 "type": "object"
1013 }
1014 }
1015 }
1016 },
1017 "type": "object",
1018 "allOf": [
1019 {
1020 "$ref": "#/definitions/compilerOptionsDefinition"
1021 },
1022 {
1023 "$ref": "#/definitions/compileOnSaveDefinition"
1024 },
1025 {
1026 "$ref": "#/definitions/typeAcquisitionDefinition"
1027 },
1028 {
1029 "$ref": "#/definitions/extendsDefinition"
1030 },
1031 {
1032 "$ref": "#/definitions/tsNodeDefinition"
1033 },
1034 {
1035 "$ref": "#/definitions/tsNodeDefinition"
1036 },
1037 {
1038 "anyOf": [
1039 {
1040 "$ref": "#/definitions/filesDefinition"
1041 },
1042 {
1043 "$ref": "#/definitions/excludeDefinition"
1044 },
1045 {
1046 "$ref": "#/definitions/includeDefinition"
1047 },
1048 {
1049 "$ref": "#/definitions/referencesDefinition"
1050 }
1051 ]
1052 }
1053 ]
1054}
\No newline at end of file