Skip to content

Commit 08fc75b

Browse files
committed
Gulp should fail after lint error
1 parent 2c77d03 commit 08fc75b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ gulp.task("lint", ["prettify-js"], function() {
3737
gulp.src("./src/js/**/*.js")
3838
.pipe(debug())
3939
.pipe(eslint())
40-
.pipe(eslint.format());
40+
.pipe(eslint.format())
41+
.pipe(eslint.failAfterError());
4142
});
4243

4344
function taskBrowserify(opts) {
@@ -87,4 +88,4 @@ gulp.task("styles", ["prettify-css"], function() {
8788
.pipe(gulp.dest("./dist/"));
8889
});
8990

90-
gulp.task("default", ["scripts", "styles"]);
91+
gulp.task("default", ["scripts", "styles"]);

0 commit comments

Comments
 (0)