{ "title": "JSON schema for the JavaScript configuration file", "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." } } }, "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" } } } }