diff --git a/extensions/javascript/package.json b/extensions/javascript/package.json index e28f71d8387dffd880b0e52690150985913a766d..7f49880b69c16712eb4c84a1cbb574d24060e05d 100644 --- a/extensions/javascript/package.json +++ b/extensions/javascript/package.json @@ -96,6 +96,10 @@ { "fileMatch": "jsconfig.json", "url": "./schemas/jsconfig.schema.json" + }, + { + "fileMatch": "jsconfig.json", + "url": "http://json.schemastore.org/jsconfig" } ] } diff --git a/extensions/javascript/schemas/jsconfig.schema.json b/extensions/javascript/schemas/jsconfig.schema.json index ea79373949b84a03c6508893c63e23a443350ab4..ddee9fc57af4ec766c99913924b0cae7af482f28 100644 --- a/extensions/javascript/schemas/jsconfig.schema.json +++ b/extensions/javascript/schemas/jsconfig.schema.json @@ -3,203 +3,7 @@ "type": "object", "default": { "compilerOptions": { - "target": "ES6" - } - }, - "properties": { - "compilerOptions": { - "type": "object", - "description": "Instructs the JavaScript language service how to validate and down level compile .js files", - "properties": { - "charset": { - "description": "The character set of the input files", - "type": "string" - }, - "diagnostics": { - "description": "When down-level compiling, show diagnostic information.", - "type": "boolean" - }, - "emitBOM": { - "description": "When down-level compiling, emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.", - "type": "boolean" - }, - "inlineSourceMap": { - "description": "When down-level compiling, emit a single file with source maps instead of having a separate file.", - "type": "boolean" - }, - "inlineSources": { - "description": "When down-level compiling, emit the source alongside the sourcemaps within a single file; requires --inlineSourceMap to be set.", - "type": "boolean" - }, - "jsx": { - "description": "When down-level compiling, specify JSX code generation: 'preserve' or 'react'.", - "enum": [ - "preserve", - "react" - ] - }, - "reactNamespace": { - "description": "When down-level compiling, specifies the object invoked for createElement and __spread when targeting 'react' JSX emit.", - "type": "string" - }, - "listFiles": { - "description": "When down-level compiling, print names of files part of the compilation.", - "type": "boolean" - }, - "mapRoot": { - "description": "When down-level compiling, specifies the location where debugger should locate map files instead of generated locations", - "type": "string", - "format": "uri" - }, - "module": { - "description": "When down-level compiling, specify module code generation: 'commonjs', 'system', 'umd', 'amd', 'es6', or 'es2015'.", - "enum": [ - "commonjs", - "umd", - "amd", - "system", - "es6", - "es2015" - ] - }, - "newLine": { - "description": "When down-level compiling, specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).", - "enum": [ - "CRLF", - "LF" - ] - }, - "noEmit": { - "description": "When down-level compiling, do not emit output.", - "type": "boolean" - }, - "noEmitHelpers": { - "description": "When down-level compiling, do not generate custom helper functions like __extends in compiled output.", - "type": "boolean" - }, - "noEmitOnError": { - "description": "When down-level compiling, do not emit outputs if any type checking errors were reported.", - "type": "boolean" - }, - "noLib": { - "description": "Do not include the default library file (lib.d.ts).", - "type": "boolean" - }, - "noResolve": { - "description": "When down-level compiling, do not resolve triple-slash references or module import targets to the input files.", - "type": "boolean" - }, - "skipDefaultLibCheck": { - "description": "Do not check for the default library (lib.d.ts).", - "type": "boolean" - }, - "outFile": { - "description": "When down-level compiling, concatenate and emit output to single file.", - "type": "string", - "format": "uri" - }, - "outDir": { - "description": "When down-level compiling, redirect output structure to the directory.", - "type": "string", - "format": "uri" - }, - "pretty": { - "description": "When down-level compiling, stylize errors and messages using color and context. (experimental)", - "type": "boolean" - }, - "removeComments": { - "description": "When down-level compiling, do not emit comments to output.", - "type": "boolean" - }, - "rootDir": { - "description": "When down-level compiling, specifies the root directory of input files. Use to control the output directory structure with --outDir.", - "type": "string", - "format": "uri" - }, - "isolatedModules": { - "description": "When down-level compiling, unconditionally emit imports for unresolved files.", - "type": "boolean" - }, - "sourceMap": { - "description": "When down-level compiling, generates corresponding '.map' file.", - "type": "boolean" - }, - "sourceRoot": { - "description": "When down-level compiling, specifies the location where debugger should locate JavaScript files instead of source locations.", - "type": "string", - "format": "uri" - }, - "stripInternal": { - "description": "When down-level compiling, do not emit declarations for code that has an '@internal' annotation.", - "type": "boolean" - }, - "target": { - "description": "Specifies which default library (lib.d.ts) to use. When down-level compiling, specifies the code being generated.", - "enum": [ - "ES3", - "ES5", - "ES6", - "es3", - "es5", - "es6", - "es2015" - ], - "default": "ES6" - }, - "watch": { - "description": "When down-level compiling, watch input files.", - "type": "boolean" - }, - "experimentalDecorators": { - "description": "Enables experimental support for proposed ES decorators.", - "type": "boolean" - }, - "emitDecoratorMetadata": { - "description": "When down-level compiling, emit design-type metadata for decorated declarations in source.", - "type": "boolean" - }, - "allowUnusedLabels": { - "type": "boolean", - "description": "Do not report errors on unused labels." - }, - "noFallthroughCasesInSwitch": { - "type": "boolean", - "description": "Report errors for fallthrough cases in switch statement." - }, - "allowUnreachableCode": { - "type": "boolean", - "description": "Do not report errors on unreachable code." - }, - "forceConsistentCasingInFileNames": { - "type": "boolean", - "description": "Disallow inconsistently-cased references to the same file." - }, - "allowSyntheticDefaultImports": { - "type": "boolean", - "description": "Allow default imports from modules with no default export. This does not affect code emit, just typechecking." - }, - "noImplicitUseStrict": { - "type": "boolean", - "description": "When down-level compiling, do not emit \"use strict\" directives in module output." - } - }, - "additionalProperties": false - }, - "files": { - "type": "array", - "description": "If no 'files' property is present in a jsconfig.json, the language service defaults to including all files the containing directory and subdirectories. When a 'files' property is specified, only those files are included.", - "items": { - "type": "string", - "format": "uri" - } - }, - "exclude": { - "type": "array", - "description": "List files and folders that should not be included. This property is not honored when the 'files' property is present.", - "items": { - "type": "string", - "format": "uri" - } + "target": "es6" } } } diff --git a/extensions/typescript/schemas/tsconfig.schema.json b/extensions/typescript/schemas/tsconfig.schema.json index 3096875d67b7c335a68835faef08c7f102a5cac5..b66e9e112ba081cf09a30fe9c55d4712d7dc8e33 100644 --- a/extensions/typescript/schemas/tsconfig.schema.json +++ b/extensions/typescript/schemas/tsconfig.schema.json @@ -8,17 +8,5 @@ "exclude": [ "node_modules" ] - }, - "properties": { - "compilerOptions": { - "type": "object", - "description": "Instructs the JavaScript language service how to validate .js files", - "properties": { - "allowJs": { - "description": "Includes JS (requires TypeScript 1.8)", - "type": "boolean" - } - } - } } } \ No newline at end of file