From: Dan Allen Date: Fri, 28 Dec 2018 08:45:05 +0000 (-0700) Subject: enable failAfterError option on stylelint integration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ba998eab09977ba2faddc243f7a77b1cb73a3f54;p=working%2Feg-antora.git enable failAfterError option on stylelint integration --- diff --git a/gulpfile.js/lint-css.js b/gulpfile.js/lint-css.js index 5cad763..d684014 100644 --- a/gulpfile.js/lint-css.js +++ b/gulpfile.js/lint-css.js @@ -3,5 +3,8 @@ const stylelint = require('gulp-stylelint') const vfs = require('vinyl-fs') -module.exports = (files) => () => - vfs.src(files).pipe(stylelint({ reporters: [{ formatter: 'string', console: true }] })) +module.exports = (files) => (done) => + vfs + .src(files) + .pipe(stylelint({ reporters: [{ formatter: 'string', console: true }], failAfterError: true })) + .on('error', done)