Enable no-var-keyword tslint rule

This commit is contained in:
Matt Bierner
2019-01-03 18:02:48 -08:00
parent 3f8579f96a
commit 5cc00861fc
42 changed files with 557 additions and 561 deletions

View File

@@ -81,6 +81,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
this.pathSeparator = path.sep;
this.lastStart = Date.now();
// tslint:disable-next-line: no-var-keyword
var p = new Promise<void>((resolve, reject) => {
this._onReady = { promise: p, resolve, reject };
});

View File

@@ -35,7 +35,7 @@ export class Delayer<T> {
}).then(() => {
this.completionPromise = null;
this.onSuccess = null;
var result = this.task && this.task();
const result = this.task && this.task();
this.task = null;
return result;
});