We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b521ae5 commit 574496dCopy full SHA for 574496d
packages/@angular/cli/tasks/lint.ts
@@ -61,6 +61,12 @@ export default Task.extend({
61
results = results.concat(result.output.trim().concat('\n'));
62
});
63
64
+ // print formatter output directly for non human-readable formats
65
+ if (['prose', 'verbose'].indexOf(commandOptions.format) == -1) {
66
+ ui.writeLine(results.trim());
67
+ return (errors == 0 || commandOptions.force) ? Promise.resolve(0) : Promise.resolve(2);
68
+ }
69
+
70
if (errors > 0) {
71
ui.writeLine(results.trim());
72
ui.writeLine(chalk.red('Lint errors found in the listed files.'));
0 commit comments