Skip to content

Commit 0112a38

Browse files
committed
Accept baselines
1 parent b6ccad4 commit 0112a38

File tree

8 files changed

+421
-1069
lines changed
  • tests/baselines/reference/tsConfig

8 files changed

+421
-1069
lines changed
Lines changed: 52 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,52 @@
1-
{
2-
"compilerOptions": {
3-
// Basic Options
4-
5-
// Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'.
6-
"target": "es5",
7-
8-
// Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'.
9-
"module": "commonjs",
10-
11-
// Specify library files to be included in the compilation:
12-
// "lib": [],
13-
14-
// Allow javascript files to be compiled.
15-
// "allowJs": true,
16-
17-
// Specify JSX code generation: 'preserve', 'react-native', or 'react'.
18-
// "jsx": "preserve",
19-
20-
// Generates corresponding '.d.ts' file.
21-
// "declaration": true,
22-
23-
// Generates corresponding '.map' file.
24-
// "sourceMap": true,
25-
26-
// Concatenate and emit output to single file.
27-
// "outFile": "./",
28-
29-
// Redirect output structure to the directory.
30-
// "outDir": "./",
31-
32-
// Specify the root directory of input files. Use to control the output directory structure with --outDir.
33-
// "rootDir": "./",
34-
35-
// Do not emit comments to output.
36-
// "removeComments": true,
37-
38-
// Do not emit outputs.
39-
// "noEmit": true,
40-
41-
// Import emit helpers from 'tslib'.
42-
// "importHelpers": true,
43-
44-
// Unconditionally emit imports for unresolved files.
45-
// "isolatedModules": true,
46-
47-
48-
// Strict Checks
49-
50-
// Enable all strict type checks.
51-
"strict": true,
52-
53-
// Raise error on expressions and declarations with an implied 'any' type.
54-
// "noImplicitAny": true,
55-
56-
// Enable strict null checks.
57-
// "strictNullChecks": true,
58-
59-
// Raise error on 'this' expressions with an implied 'any' type.
60-
// "noImplicitThis": true,
61-
62-
// Report errors on unused locals.
63-
// "noUnusedLocals": true,
64-
65-
// Report errors on unused parameters.
66-
// "noUnusedParameters": true,
67-
68-
// Parse in strict mode and emit "use strict" for each source file.
69-
// "alwaysStrict": true,
70-
71-
// Report error when not all code paths in function return a value.
72-
// "noImplicitReturns": true,
73-
74-
// Report errors for fallthrough cases in switch statement.
75-
// "noFallthroughCasesInSwitch": true,
76-
77-
78-
// Module Resolution Options
79-
80-
// Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
81-
// "moduleResolution": "node",
82-
83-
// Base directory to resolve non-absolute module names.
84-
// "baseUrl": "./",
85-
86-
// List of path mapping entries for module names to locations relative to the 'baseUrl'.
87-
// "paths": {},
88-
89-
// List of root folders whose combined content represent the structure of the project at runtime.
90-
// "rootDirs": [],
91-
92-
// List of folders to include type definitions from.
93-
// "typeRoots": [],
94-
95-
// Type declaration files to be included in compilation.
96-
// "types": [],
97-
98-
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
99-
// "allowSyntheticDefaultImports": true,
100-
101-
102-
// SourceMap Options
103-
104-
// Specify the location where debugger should locate TypeScript files instead of source locations.
105-
// "sourceRoot": "./",
106-
107-
// Specify the location where debugger should locate map files instead of generated locations.
108-
// "mapRoot": "./",
109-
110-
// Emit a single file with source maps instead of having a separate file.
111-
// "inlineSourceMap": true,
112-
113-
// Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.
114-
// "inlineSources": true,
115-
116-
117-
// JSX Options
118-
119-
// Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'.
120-
// "jsxFactory": "",
121-
122-
123-
// Experimental Options
124-
125-
// Enables experimental support for ES7 decorators.
126-
// "experimentalDecorators": true,
127-
128-
// Enables experimental support for emitting type metadata for decorators.
129-
// "emitDecoratorMetadata": true,
130-
131-
132-
}
133-
}
1+
{
2+
"compilerOptions": {
3+
/* Basic Options */
4+
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
5+
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
6+
// "lib": [], /* Specify library files to be included in the compilation: */
7+
// "allowJs": true, /* Allow javascript files to be compiled. */
8+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
9+
// "declaration": true, /* Generates corresponding '.d.ts' file. */
10+
// "sourceMap": true, /* Generates corresponding '.map' file. */
11+
// "outFile": "./", /* Concatenate and emit output to single file. */
12+
// "outDir": "./", /* Redirect output structure to the directory. */
13+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
14+
// "removeComments": true, /* Do not emit comments to output. */
15+
// "noEmit": true, /* Do not emit outputs. */
16+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
17+
// "downlevelIteration": true, /* Use full down-level iteration for iterables and arrays for 'for-of', spread, and destructuring in ES5/3. */
18+
// "isolatedModules": true, /* Unconditionally emit imports for unresolved files. */
19+
20+
/* Strict Type Checks */
21+
"strict": true /* Enable all strict type checks. */
22+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
23+
// "strictNullChecks": true, /* Enable strict null checks. */
24+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
25+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
26+
27+
/* Additional Checks */
28+
// "noUnusedLocals": true, /* Report errors on unused locals. */
29+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
30+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
31+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
32+
33+
/* Module Resolution Options */
34+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
35+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
36+
// "paths": {}, /* List of path mapping entries for module names to locations relative to the 'baseUrl'. */
37+
// "rootDirs": [], /* List of root folders whose combined content represent the structure of the project at runtime. */
38+
// "typeRoots": [], /* List of folders to include type definitions from. */
39+
// "types": [], /* Type declaration files to be included in compilation. */
40+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
41+
42+
/* SourceMap Options */
43+
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
44+
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
45+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
46+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
47+
48+
/* Experimental Options */
49+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
50+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
51+
}
52+
}
Lines changed: 52 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,52 @@
1-
{
2-
"compilerOptions": {
3-
// Basic Options
4-
5-
// Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'.
6-
"target": "es5",
7-
8-
// Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'.
9-
"module": "commonjs",
10-
11-
// Specify library files to be included in the compilation:
12-
// "lib": [],
13-
14-
// Allow javascript files to be compiled.
15-
// "allowJs": true,
16-
17-
// Specify JSX code generation: 'preserve', 'react-native', or 'react'.
18-
// "jsx": "preserve",
19-
20-
// Generates corresponding '.d.ts' file.
21-
// "declaration": true,
22-
23-
// Generates corresponding '.map' file.
24-
// "sourceMap": true,
25-
26-
// Concatenate and emit output to single file.
27-
// "outFile": "./",
28-
29-
// Redirect output structure to the directory.
30-
// "outDir": "./",
31-
32-
// Specify the root directory of input files. Use to control the output directory structure with --outDir.
33-
// "rootDir": "./",
34-
35-
// Do not emit comments to output.
36-
// "removeComments": true,
37-
38-
// Do not emit outputs.
39-
// "noEmit": true,
40-
41-
// Import emit helpers from 'tslib'.
42-
// "importHelpers": true,
43-
44-
// Unconditionally emit imports for unresolved files.
45-
// "isolatedModules": true,
46-
47-
48-
// Strict Checks
49-
50-
// Enable all strict type checks.
51-
"strict": true,
52-
53-
// Raise error on expressions and declarations with an implied 'any' type.
54-
// "noImplicitAny": true,
55-
56-
// Enable strict null checks.
57-
// "strictNullChecks": true,
58-
59-
// Raise error on 'this' expressions with an implied 'any' type.
60-
// "noImplicitThis": true,
61-
62-
// Report errors on unused locals.
63-
"noUnusedLocals": true,
64-
65-
// Report errors on unused parameters.
66-
// "noUnusedParameters": true,
67-
68-
// Parse in strict mode and emit "use strict" for each source file.
69-
// "alwaysStrict": true,
70-
71-
// Report error when not all code paths in function return a value.
72-
// "noImplicitReturns": true,
73-
74-
// Report errors for fallthrough cases in switch statement.
75-
// "noFallthroughCasesInSwitch": true,
76-
77-
78-
// Module Resolution Options
79-
80-
// Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
81-
// "moduleResolution": "node",
82-
83-
// Base directory to resolve non-absolute module names.
84-
// "baseUrl": "./",
85-
86-
// List of path mapping entries for module names to locations relative to the 'baseUrl'.
87-
// "paths": {},
88-
89-
// List of root folders whose combined content represent the structure of the project at runtime.
90-
// "rootDirs": [],
91-
92-
// List of folders to include type definitions from.
93-
// "typeRoots": [],
94-
95-
// Type declaration files to be included in compilation.
96-
// "types": [],
97-
98-
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
99-
// "allowSyntheticDefaultImports": true,
100-
101-
102-
// SourceMap Options
103-
104-
// Specify the location where debugger should locate TypeScript files instead of source locations.
105-
// "sourceRoot": "./",
106-
107-
// Specify the location where debugger should locate map files instead of generated locations.
108-
// "mapRoot": "./",
109-
110-
// Emit a single file with source maps instead of having a separate file.
111-
// "inlineSourceMap": true,
112-
113-
// Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.
114-
// "inlineSources": true,
115-
116-
117-
// JSX Options
118-
119-
// Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'.
120-
// "jsxFactory": "",
121-
122-
123-
// Experimental Options
124-
125-
// Enables experimental support for ES7 decorators.
126-
// "experimentalDecorators": true,
127-
128-
// Enables experimental support for emitting type metadata for decorators.
129-
// "emitDecoratorMetadata": true,
130-
131-
132-
}
133-
}
1+
{
2+
"compilerOptions": {
3+
/* Basic Options */
4+
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
5+
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
6+
// "lib": [], /* Specify library files to be included in the compilation: */
7+
// "allowJs": true, /* Allow javascript files to be compiled. */
8+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
9+
// "declaration": true, /* Generates corresponding '.d.ts' file. */
10+
// "sourceMap": true, /* Generates corresponding '.map' file. */
11+
// "outFile": "./", /* Concatenate and emit output to single file. */
12+
// "outDir": "./", /* Redirect output structure to the directory. */
13+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
14+
// "removeComments": true, /* Do not emit comments to output. */
15+
// "noEmit": true, /* Do not emit outputs. */
16+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
17+
// "downlevelIteration": true, /* Use full down-level iteration for iterables and arrays for 'for-of', spread, and destructuring in ES5/3. */
18+
// "isolatedModules": true, /* Unconditionally emit imports for unresolved files. */
19+
20+
/* Strict Type Checks */
21+
"strict": true, /* Enable all strict type checks. */
22+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
23+
// "strictNullChecks": true, /* Enable strict null checks. */
24+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
25+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
26+
27+
/* Additional Checks */
28+
"noUnusedLocals": true /* Report errors on unused locals. */
29+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
30+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
31+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
32+
33+
/* Module Resolution Options */
34+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
35+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
36+
// "paths": {}, /* List of path mapping entries for module names to locations relative to the 'baseUrl'. */
37+
// "rootDirs": [], /* List of root folders whose combined content represent the structure of the project at runtime. */
38+
// "typeRoots": [], /* List of folders to include type definitions from. */
39+
// "types": [], /* Type declaration files to be included in compilation. */
40+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
41+
42+
/* SourceMap Options */
43+
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
44+
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
45+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
46+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
47+
48+
/* Experimental Options */
49+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
50+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
51+
}
52+
}

0 commit comments

Comments
 (0)