We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3427cdc commit 2420b0bCopy full SHA for 2420b0b
packages/@angular/cli/tasks/lint.ts
@@ -48,7 +48,11 @@ export default Task.extend({
48
}, program);
49
50
files.forEach((file) => {
51
- const fileContents = program.getSourceFile(file).getFullText();
+ const sourceFile = program.getSourceFile(file);
52
+ if (!sourceFile) {
53
+ return;
54
+ }
55
+ const fileContents = sourceFile.getFullText();
56
const configLoad = Configuration.findConfiguration(config.tslintConfig, file);
57
linter.lint(file, fileContents, configLoad.results);
58
});
0 commit comments