8000
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 f3c3874 commit 351f6b1Copy full SHA for 351f6b1
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