Skip to content

Commit 84fc29f

Browse files
committed
Fix lint failures detected by tslint@4.4.2
1 parent b5c59c6 commit 84fc29f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ namespace ts {
486486
// (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
487487
let options: any;
488488
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
489-
// do nothing if either
489+
// do nothing if either
490490
// - target folder does not exist
491491
// - this is UNC path on Windows (https://github.com/Microsoft/TypeScript/issues/13874)
492492
return noOpFileWatcher;

src/harness/fourslash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ namespace FourSlash {
183183

184184
// The current caret position in the active file
185185
public currentCaretPosition = 0;
186-
public lastKnownMarker: string = "";
186+
public lastKnownMarker = "";
187187

188188
// The file that's currently 'opened'
189189
public activeFile: FourSlashFile;

src/harness/harnessLanguageService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Harness.LanguageService {
77
export class ScriptInfo {
8-
public version: number = 1;
8+
public version = 1;
99
public editRanges: { length: number; textChangeRange: ts.TextChangeRange; }[] = [];
1010
private lineMap: number[] = undefined;
1111

@@ -594,7 +594,7 @@ namespace Harness.LanguageService {
594594
class SessionServerHost implements ts.server.ServerHost, ts.server.Logger {
595595
args: string[] = [];
596596
newLine: string;
597-
useCaseSensitiveFileNames: boolean = false;
597+
useCaseSensitiveFileNames = false;
598598

599599
constructor(private host: NativeLanguageServiceHost) {
600600
this.newLine = this.host.getNewLine();

src/harness/unittests/tsserverProjectSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3115,7 +3115,7 @@ namespace ts.projectSystem {
31153115
let options = project.getCompilerOptions();
31163116
assert.isTrue(options.maxNodeModuleJsDepth === 2);
31173117

3118-
// Assert the option sticks
3118+
// Assert the option sticks
31193119
projectService.setCompilerOptionsForInferredProjects({ target: ScriptTarget.ES2016 });
31203120
project = projectService.inferredProjects[0];
31213121
options = project.getCompilerOptions();

src/server/cancellationToken/cancellationToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="node" />
22

33

4-
// TODO: extract services types
4+
// TODO: extract services types
55
interface HostCancellationToken {
66
isCancellationRequested(): boolean;
77
}

src/services/codefixes/unusedIdentifierFixes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ namespace ts.codefix {
9494
return removeSingleItem(namedImports.elements, token);
9595
}
9696

97-
// handle case where "import d, * as ns from './file'"
97+
// handle case where "import d, * as ns from './file'"
9898
// or "'import {a, b as ns} from './file'"
99-
case SyntaxKind.ImportClause: // this covers both 'import |d|' and 'import |d,| *'
99+
case SyntaxKind.ImportClause: // this covers both 'import |d|' and 'import |d,| *'
100100
const importClause = <ImportClause>token.parent;
101101
if (!importClause.namedBindings) { // |import d from './file'| or |import * as ns from './file'|
102102
const importDecl = findImportDeclaration(importClause);

0 commit comments

Comments
 (0)