From 66135309354f018550b515321ed5dce3cc85e8cb Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 13 Feb 2017 22:14:05 -0800 Subject: [PATCH] Accept baselines --- src/harness/unittests/initializeTSConfig.ts | 2 +- .../tsconfig.json | 130 ++++++++++++++++- .../tsconfig.json | 129 ++++++++++++++++- .../tsconfig.json | 129 ++++++++++++++++- .../tsconfig.json | 130 ++++++++++++++++- .../tsconfig.json | 134 ++++++++++++++++-- .../tsconfig.json | 130 ++++++++++++++++- .../tsconfig.json | 134 ++++++++++++++++-- .../tsconfig.json | 134 ++++++++++++++++-- 9 files changed, 1007 insertions(+), 45 deletions(-) diff --git a/src/harness/unittests/initializeTSConfig.ts b/src/harness/unittests/initializeTSConfig.ts index cb995212a94..b71396411ea 100644 --- a/src/harness/unittests/initializeTSConfig.ts +++ b/src/harness/unittests/initializeTSConfig.ts @@ -12,7 +12,7 @@ namespace ts { it(`Correct output for ${outputFileName}`, () => { Harness.Baseline.runBaseline(outputFileName, () => { if (initResult) { - return JSON.stringify(initResult, undefined, 4); + return initResult; } else { // This can happen if compiler recieve invalid compiler-options diff --git a/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json b/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json index ea891967cb5..9234ce6ad8f 100644 --- a/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json @@ -1,8 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs" + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json index abe135b4f16..7481eb6e866 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json @@ -1,9 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false, + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs", + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. "noUnusedLocals": true + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json index e28b66c8c2b..37ddc8169bf 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json @@ -1,9 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false, + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs", + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' "jsx": "react" + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json index 5273b3cb7c8..24fb7b4431d 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json @@ -1,13 +1,135 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs" + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + }, "files": [ "file0.st", "file1.ts", "file2.ts" ] -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json index fa9cb6cad84..0621c2991ed 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json @@ -1,12 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.promise" - ] + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs", + + // Specify library files to be included in the compilation: + "lib": ["es5","es2015.promise"] + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json index ea891967cb5..9234ce6ad8f 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json @@ -1,8 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs" + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json index 3ff8208d9d6..499c3d57de1 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json @@ -1,12 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core" - ] + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs", + + // Specify library files to be included in the compilation: + "lib": ["es5","es2015.core"] + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + // "types": [], + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +} diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json index b1740ac4c12..7eebba70ab3 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json @@ -1,12 +1,130 @@ { "compilerOptions": { - "module": "commonjs", + // Basic Options + + // Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT' "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "types": [ - "jquery", - "mocha" - ] + + // Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015' + "module": "commonjs", + + // Specify library files to be included in the compilation: + // "lib": [], + + // Allow javascript files to be compiled. + // "allowJs": true, + + // Specify JSX code generation: 'preserve', 'react-native', or 'react' + // "jsx": "preserve", + + // Generates corresponding '.d.ts' file. + // "declaration": true, + + // Generates corresponding '.map' file. + // "sourceMap": true, + + // Concatenate and emit output to single file. + // "outFile": "./", + + // Redirect output structure to the directory. + // "outDir": "./", + + // Specify the root directory of input files. Use to control the output directory structure with --outDir. + // "rootDir": "./", + + // Do not emit comments to output. + // "removeComments": true, + + // Do not emit outputs. + // "noEmit": true, + + // Import emit helpers from 'tslib'. + // "importHelpers": true, + + // Unconditionally emit imports for unresolved files. + // "isolatedModules": true, + + + // Strict Checks + + // Raise error on expressions and declarations with an implied 'any' type. + // "noImplicitAny": true, + + // Enable strict null checks. + // "strictNullChecks": true, + + // Raise error on 'this' expressions with an implied 'any' type. + // "noImplicitThis": true, + + // Report errors on unused locals. + // "noUnusedLocals": true, + + // Report errors on unused parameters. + // "noUnusedParameters": true, + + // Parse in strict mode and emit "use strict" for each source file + // "alwaysStrict": true, + + // Report error when not all code paths in function return a value. + // "noImplicitReturns": true, + + // Report errors for fallthrough cases in switch statement. + // "noFallthroughCasesInSwitch": true, + + + // Module Resolution Options + + // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + // "moduleResolution": "node", + + // Base directory to resolve non-absolute module names. + // "baseUrl": "./", + + // List of path mapping entries for module names to locations relative to the 'baseUrl'. + // "paths": {}, + + // List of root folders whose combined content represent the structure of the project at runtime. + // "rootDirs": [], + + // List of folders to include type definitions from. + // "typeRoots": [], + + // Type declaration files to be included in compilation. + "types": ["jquery","mocha"] + + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + // "allowSyntheticDefaultImports": true, + + + // SourceMap Options + + // Specify the location where debugger should locate TypeScript files instead of source locations. + // "sourceRoot": "./", + + // Specify the location where debugger should locate map files instead of generated locations. + // "mapRoot": "./", + + // Emit a single file with source maps instead of having a separate file. + // "inlineSourceMap": true, + + // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. + // "inlineSources": true, + + + // JSX Options + + // Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'. + // "jsxFactory": "", + + + // Experimental Options + + // Enables experimental support for ES7 decorators. + // "experimentalDecorators": true, + + // Enables experimental support for emitting type metadata for decorators. + // "emitDecoratorMetadata": true, + + } -} \ No newline at end of file +}