Skip to content

Commit 9b043c7

Browse files
committed
Added new tsconfig validation for options introduced in microsoft/TypeScript#4788 (reachability checks)
1 parent 0876bf4 commit 9b043c7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dist/main/tsconfig/tsconfig.js

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ var simpleValidator = require('./simpleValidator');
33
var types = simpleValidator.types;
44
var compilerOptionsValidation = {
55
allowNonTsExtensions: { type: types.boolean },
6+
allowUnreachableCode: { type: types.boolean },
7+
allowUnusedLabels: { type: types.boolean },
68
charset: { type: types.string },
79
codepage: { type: types.number },
810
declaration: { type: types.boolean },
@@ -26,7 +28,9 @@ var compilerOptionsValidation = {
2628
noEmitHelpers: { type: types.boolean },
2729
noEmitOnError: { type: types.boolean },
2830
noErrorTruncation: { type: types.boolean },
31+
noFallthroughCasesInSwitch: { type: types.boolean },
2932
noImplicitAny: { type: types.boolean },
33+
noImplicitReturns: { type: types.boolean },
3034
noLib: { type: types.boolean },
3135
noLibCheck: { type: types.boolean },
3236
noResolve: { type: types.boolean },

lib/main/tsconfig/tsconfig.ts

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ var types = simpleValidator.types;
1717
*/
1818
interface CompilerOptions {
1919
allowNonTsExtensions?: boolean;
20+
allowUnreachableCode?: boolean;
21+
allowUnusedLabels?: boolean;
2022
charset?: string;
2123
codepage?: number;
2224
declaration?: boolean;
@@ -40,7 +42,9 @@ interface CompilerOptions {
4042
noEmitHelpers?: boolean;
4143
noEmitOnError?: boolean;
4244
noErrorTruncation?: boolean;
45+
noFallthroughCasesInSwitch?: boolean;
4346
noImplicitAny?: boolean; // Error on inferred `any` type
47+
noImplicitReturns?: boolean;
4448
noLib?: boolean;
4549
noLibCheck?: boolean;
4650
noResolve?: boolean;
@@ -62,6 +66,8 @@ interface CompilerOptions {
6266

6367
var compilerOptionsValidation: simpleValidator.ValidationInfo = {
6468
allowNonTsExtensions: { type: types.boolean },
69+
allowUnreachableCode: { type: types.boolean },
70+
allowUnusedLabels: { type: types.boolean },
6571
charset: { type: types.string },
6672
codepage: { type: types.number },
6773
declaration: { type: types.boolean },
@@ -85,7 +91,9 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
8591
noEmitHelpers: { type: types.boolean },
8692
noEmitOnError: { type: types.boolean },
8793
noErrorTruncation: { type: types.boolean },
94+
noFallthroughCasesInSwitch: { type: types.boolean },
8895
noImplicitAny: { type: types.boolean },
96+
noImplicitReturns: { type: types.boolean },
8997
noLib: { type: types.boolean },
9098
noLibCheck: { type: types.boolean },
9199
noResolve: { type: types.boolean },

0 commit comments

Comments
 (0)