Skip to content

Commit 2f688c8

Browse files
committed
Merge pull request microsoft#4554 from Microsoft/aeschli/jsconfig
Update jsconfig
2 parents b85e66a + c0367f9 commit 2f688c8

1 file changed

Lines changed: 132 additions & 10 deletions

File tree

extensions/javascript/schemas/jsconfig.schema.json

Lines changed: 132 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,132 @@
99
"properties": {
1010
"compilerOptions": {
1111
"type": "object",
12-
"description": "Instructs the JavaScript language service how to validate .js files",
12+
"description": "Instructs the JavaScript language service how to validate and down level compile .js files",
1313
"properties": {
1414
"charset": {
1515
"description": "The character set of the input files",
1616
"type": "string"
1717
},
1818
"diagnostics": {
19-
"description": "Show diagnostic information.",
19+
"description": "When down-level compiling, show diagnostic information.",
2020
"type": "boolean"
2121
},
22-
"locale": {
23-
"description": "The locale to use to show error messages, e.g. en-us.",
22+
"emitBOM": {
23+
"description": "When down-level compiling, emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.",
24+
"type": "boolean"
25+
},
26+
"inlineSourceMap": {
27+
"description": "When down-level compiling, emit a single file with source maps instead of having a separate file.",
28+
"type": "boolean"
29+
},
30+
"inlineSources": {
31+
"description": "When down-level compiling, emit the source alongside the sourcemaps within a single file; requires --inlineSourceMap to be set.",
32+
"type": "boolean"
33+
},
34+
"jsx": {
35+
"description": "When down-level compiling, specify JSX code generation: 'preserve' or 'react'.",
36+
"enum": [
37+
"preserve",
38+
"react"
39+
]
40+
},
41+
"reactNamespace": {
42+
"description": "When down-level compiling, specifies the object invoked for createElement and __spread when targeting 'react' JSX emit.",
2443
"type": "string"
2544
},
45+
"listFiles": {
46+
"description": "When down-level compiling, print names of files part of the compilation.",
47+
"type": "boolean"
48+
},
2649
"mapRoot": {
27-
"description": "Specifies the location where debugger should locate map files instead of generated locations",
50+
"description": "When down-level compiling, specifies the location where debugger should locate map files instead of generated locations",
2851
"type": "string",
2952
"format": "uri"
3053
},
3154
"module": {
32-
"description": "Specify used module type: 'commonjs', 'system', 'umd', 'es6', or 'es2015'. Note: 'amd' is currently not supported.",
55+
"description": "When down-level compiling, specify module code generation: 'commonjs', 'system', 'umd', 'amd', 'es6', or 'es2015'.",
3356
"enum": [
3457
"commonjs",
3558
"umd",
59+
"amd",
3660
"system",
3761
"es6",
3862
"es2015"
3963
]
4064
},
41-
65+
"newLine": {
66+
"description": "When down-level compiling, specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).",
67+
"enum": [
68+
"CRLF",
69+
"LF"
70+
]
71+
},
72+
"noEmit": {
73+
"description": "When down-level compiling, do not emit output.",
74+
"type": "boolean"
75+
},
76+
"noEmitHelpers": {
77+
"description": "When down-level compiling, do not generate custom helper functions like __extends in compiled output.",
78+
"type": "boolean"
79+
},
80+
"noEmitOnError": {
81+
"description": "When down-level compiling, do not emit outputs if any type checking errors were reported.",
82+
"type": "boolean"
83+
},
4284
"noLib": {
4385
"description": "Do not include the default library file (lib.d.ts).",
4486
"type": "boolean"
4587
},
88+
"noResolve": {
89+
"description": "When down-level compiling, do not resolve triple-slash references or module import targets to the input files.",
90+
"type": "boolean"
91+
},
92+
"skipDefaultLibCheck": {
93+
"description": "Do not check for the default library (lib.d.ts).",
94+
"type": "boolean"
95+
},
96+
"outFile": {
97+
"description": "When down-level compiling, concatenate and emit output to single file.",
98+
"type": "string",
99+
"format": "uri"
100+
},
101+
"outDir": {
102+
"description": "When down-level compiling, redirect output structure to the directory.",
103+
"type": "string",
104+
"format": "uri"
105+
},
106+
"pretty": {
107+
"description": "When down-level compiling, stylize errors and messages using color and context. (experimental)",
108+
"type": "boolean"
109+
},
110+
"removeComments": {
111+
"description": "When down-level compiling, do not emit comments to output.",
112+
"type": "boolean"
113+
},
114+
"rootDir": {
115+
"description": "When down-level compiling, specifies the root directory of input files. Use to control the output directory structure with --outDir.",
116+
"type": "string",
117+
"format": "uri"
118+
},
119+
"isolatedModules": {
120+
"description": "When down-level compiling, unconditionally emit imports for unresolved files.",
121+
"type": "boolean"
122+
},
123+
"sourceMap": {
124+
"description": "When down-level compiling, generates corresponding '.map' file.",
125+
"type": "boolean"
126+
},
127+
"sourceRoot": {
128+
"description": "When down-level compiling, specifies the location where debugger should locate JavaScript files instead of source locations.",
129+
"type": "string",
130+
"format": "uri"
131+
},
132+
"stripInternal": {
133+
"description": "When down-level compiling, do not emit declarations for code that has an '@internal' annotation.",
134+
"type": "boolean"
135+
},
46136
"target": {
47-
"description": "Specify ECMAScript target version.",
137+
"description": "Specifies which default library (lib.d.ts) to use. When down-level compiling, specifies the code being generated.",
48138
"enum": [
49139
"ES3",
50140
"ES5",
@@ -56,9 +146,41 @@
56146
],
57147
"default": "ES6"
58148
},
149+
"watch": {
150+
"description": "When down-level compiling, watch input files.",
151+
"type": "boolean"
152+
},
59153
"experimentalDecorators": {
60-
"description": "Enables experimental support for ES7 decorators.",
154+
"description": "Enables experimental support for proposed ES decorators.",
155+
"type": "boolean"
156+
},
157+
"emitDecoratorMetadata": {
158+
"description": "When down-level compiling, emit design-type metadata for decorated declarations in source.",
61159
"type": "boolean"
160+
},
161+
"allowUnusedLabels": {
162+
"type": "boolean",
163+
"description": "Do not report errors on unused labels."
164+
},
165+
"noFallthroughCasesInSwitch": {
166+
"type": "boolean",
167+
"description": "Report errors for fallthrough cases in switch statement."
168+
},
169+
"allowUnreachableCode": {
170+
"type": "boolean",
171+
"description": "Do not report errors on unreachable code."
172+
},
173+
"forceConsistentCasingInFileNames": {
174+
"type": "boolean",
175+
"description": "Disallow inconsistently-cased references to the same file."
176+
},
177+
"allowSyntheticDefaultImports": {
178+
"type": "boolean",
179+
"description": "Allow default imports from modules with no default export. This does not affect code emit, just typechecking."
180+
},
181+
"noImplicitUseStrict": {
182+
"type": "boolean",
183+
"description": "When down-level compiling, do not emit \"use strict\" directives in module output."
62184
}
63185
}
64186
},
@@ -79,4 +201,4 @@
79201
}
80202
}
81203
}
82-
}
204+
}

0 commit comments

Comments
 (0)