mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
no-empty
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
"no-debugger": "off",
|
||||
"no-duplicate-case": "error",
|
||||
"no-duplicate-imports": "error",
|
||||
"no-empty": "off",
|
||||
"no-empty": "error",
|
||||
"no-eval": "off",
|
||||
"no-extra-bind": "error",
|
||||
"no-fallthrough": "off",
|
||||
|
||||
@@ -957,7 +957,7 @@ namespace ts {
|
||||
|
||||
// When semantic builder asks for diagnostics of the whole program,
|
||||
// ensure that all the affected files are handled
|
||||
// tslint:disable-next-line no-empty
|
||||
// eslint-disable-next-line no-empty
|
||||
while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) {
|
||||
}
|
||||
|
||||
|
||||
@@ -669,7 +669,7 @@ namespace ts.server {
|
||||
msg += `\n\nFile text of ${fileRequest.file}:${indent(text)}\n`;
|
||||
}
|
||||
}
|
||||
catch { } // tslint:disable-line no-empty
|
||||
catch { } // eslint-disable-line no-empty
|
||||
}
|
||||
|
||||
if (err.message && err.message.indexOf(`Could not find sourceFile:`) !== -1) {
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace ts {
|
||||
const program = getProgram();
|
||||
builderProgram = createEmitAndSemanticDiagnosticsBuilderProgram(program, host, builderProgram);
|
||||
const outputFileNames: string[] = [];
|
||||
// tslint:disable-next-line no-empty
|
||||
// eslint-disable-next-line no-empty
|
||||
while (builderProgram.emitNextAffectedFile(fileName => outputFileNames.push(fileName))) {
|
||||
}
|
||||
assert.deepEqual(outputFileNames, fileNames);
|
||||
|
||||
Reference in New Issue
Block a user