Skip to content

Commit 4166088

Browse files
haackedbasarat
authored andcommitted
Add a couple tsconfig options to atom-typescript (#1011)
* Support noImplicitThis tsconfig option * Support noUnusedLocals tsconfig option
1 parent 280e636 commit 4166088

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ var compilerOptionsValidation = {
3737
noErrorTruncation: { type: types.boolean },
3838
noFallthroughCasesInSwitch: { type: types.boolean },
3939
noImplicitAny: { type: types.boolean },
40+
noImplicitThis: { type: types.boolean },
4041
noImplicitUseStrict: { type: types.boolean },
4142
noImplicitReturns: { type: types.boolean },
4243
noLib: { type: types.boolean },
4344
noLibCheck: { type: types.boolean },
4445
noResolve: { type: types.boolean },
46+
noUnusedLocals: { type: types.boolean },
4547
out: { type: types.string },
4648
outFile: { type: types.string },
4749
outDir: { type: types.string },

lib/main/tsconfig/tsconfig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ interface CompilerOptions {
5151
noFallthroughCasesInSwitch?: boolean;
5252
noImplicitAny?: boolean; // Error on inferred `any` type
5353
noImplicitReturns?: boolean;
54+
noImplicitThis?: boolean;
5455
noImplicitUseStrict?: boolean;
5556
noLib?: boolean;
5657
noLibCheck?: boolean;
5758
noResolve?: boolean;
59+
noUnusedLocals?: boolean;
5860
out?: string; // Deprecated. Use outFile instead
5961
outFile?: string; // new name for out
6062
outDir?: string; // Redirect output structure to this directory
@@ -111,11 +113,13 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
111113
noErrorTruncation: { type: types.boolean },
112114
noFallthroughCasesInSwitch: { type: types.boolean },
113115
noImplicitAny: { type: types.boolean },
116+
noImplicitThis: { type: types.boolean },
114117
noImplicitUseStrict: { type: types.boolean },
115118
noImplicitReturns: { type: types.boolean },
116119
noLib: { type: types.boolean },
117120
noLibCheck: { type: types.boolean },
118121
noResolve: { type: types.boolean },
122+
noUnusedLocals: { type: types.boolean },
119123
out: { type: types.string },
120124
outFile: { type: types.string },
121125
outDir: { type: types.string },

0 commit comments

Comments
 (0)