Skip to content

Commit 123ca0d

Browse files
committed
no-empty
1 parent d8796d5 commit 123ca0d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"no-debugger": "off",
8383
"no-duplicate-case": "error",
8484
"no-duplicate-imports": "error",
85-
"no-empty": "off",
85+
"no-empty": "error",
8686
"no-eval": "off",
8787
"no-extra-bind": "error",
8888
"no-fallthrough": "off",

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ namespace ts {
957957

958958
// When semantic builder asks for diagnostics of the whole program,
959959
// ensure that all the affected files are handled
960-
// tslint:disable-next-line no-empty
960+
// eslint-disable-next-line no-empty
961961
while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) {
962962
}
963963

src/server/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ namespace ts.server {
669669
msg += `\n\nFile text of ${fileRequest.file}:${indent(text)}\n`;
670670
}
671671
}
672-
catch { } // tslint:disable-line no-empty
672+
catch { } // eslint-disable-line no-empty
673673
}
674674

675675
if (err.message && err.message.indexOf(`Could not find sourceFile:`) !== -1) {

src/testRunner/unittests/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace ts {
7878
const program = getProgram();
7979
builderProgram = createEmitAndSemanticDiagnosticsBuilderProgram(program, host, builderProgram);
8080
const outputFileNames: string[] = [];
81-
// tslint:disable-next-line no-empty
81+
// eslint-disable-next-line no-empty
8282
while (builderProgram.emitNextAffectedFile(fileName => outputFileNames.push(fileName))) {
8383
}
8484
assert.deepEqual(outputFileNames, fileNames);

0 commit comments

Comments
 (0)