projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a547242
)
enable failAfterError option on stylelint integration
author
Dan Allen
<dan@opendevise.com>
Fri, 28 Dec 2018 08:45:05 +0000
(
01:45
-0700)
committer
Dan Allen
<dan@opendevise.com>
Fri, 28 Dec 2018 08:45:05 +0000
(
01:45
-0700)
gulpfile.js/lint-css.js
patch
|
blob
|
history
diff --git
a/gulpfile.js/lint-css.js
b/gulpfile.js/lint-css.js
index
5cad763
..
d684014
100644
(file)
--- 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)