From ba998eab09977ba2faddc243f7a77b1cb73a3f54 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 28 Dec 2018 01:45:05 -0700 Subject: [PATCH] enable failAfterError option on stylelint integration --- gulpfile.js/lint-css.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) -- 2.11.0