Skip to content

Commit ddaac53

Browse files
committed
fail the build on lint error.
1 parent a66d309 commit ddaac53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jshint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ gulp.task('lint', function() {
1212
glob = ['lib/**/*.js', 'tasks/**/*.js', 'bin/**/*.js', 'test/specs/**/*.js'];
1313
return gulp.src(glob, {cwd: cwd})
1414
.pipe(jshint(config))
15-
.pipe(jshint.reporter(stylish));
15+
.pipe(jshint.reporter(stylish))
16+
.pipe(jshint.reporter('fail'));
1617
});
1718

1819
gulp.start('lint');

0 commit comments

Comments
 (0)