Commit ba998eab authored by Dan Allen's avatar Dan Allen

enable failAfterError option on stylelint integration

parent a5472422
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment