From b38bde3da05ad4d0de12e0509a199e1747497ce0 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Tue, 15 Oct 2019 01:45:04 +0700 Subject: [PATCH] Enabled verbose output for gulp linter tasks Resolves #61 --- gulpfile.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 642946c..0d6bca8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -35,6 +35,7 @@ gulp.task('lint:js', () => { ignore: './src/libs/**/*' }) .pipe(eslint()) + .pipe(eslint.format('stylish')) .pipe(eslint.failAfterError()) }) @@ -42,10 +43,18 @@ gulp.task('lint:css', () => { return gulp.src('./src/**/*.css', { ignore: './src/libs/**/*' }) - .pipe(stylelint()) + .pipe(stylelint({ + failAfterError: true, + reporters: [{ formatter: 'verbose', console: true }] + })) }) +// Set _settle to true, so that if one of the parallel tasks fails, +// the other one won't exit prematurely (this is a bit awkward). +// https://github.com/gulpjs/gulp/issues/1487#issuecomment-466621047 +gulp._settle = true gulp.task('lint', gulp.parallel('lint:js', 'lint:css')) +gulp._settle = false /** TASKS: CLEAN */