Enabled verbose output for gulp linter tasks

Resolves #61
This commit is contained in:
Bobby Wibowo 2019-10-15 01:45:04 +07:00
parent a701a2ab47
commit b38bde3da0
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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 */