We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbd5952 commit 4640ce3Copy full SHA for 4640ce3
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', 'stylish'].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