Skip to content

Commit f28d80d

Browse files
committed
Support '// @ts-ignore' comments in .ts files
1 parent ae1752e commit f28d80d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/program.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,7 @@ namespace ts {
11581158
const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);
11591159

11601160
const diagnostics = bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile);
1161-
return isSourceFileJavaScript(sourceFile)
1162-
? filter(diagnostics, shouldReportDiagnostic)
1163-
: diagnostics;
1161+
return filter(diagnostics, shouldReportDiagnostic);
11641162
});
11651163
}
11661164

0 commit comments

Comments
 (0)