Skip to content

Commit

Permalink
Added option to output and fail if jsHint fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick de Graaff committed Sep 3, 2016
1 parent f12036e commit fe4ca9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_js:
- "6.1"
before_script:
- npm install -g gulp
script: gulp lint
script: gulp lint -v
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ gulp.task('watch', function () {
gulp.task('lint', function () {
return gulp.src(Config.paths.source.js + '/**/*.js')
.pipe(jshint())
.pipe(jshint.reporter(jshintStylish));
.pipe(jshint.reporter(jshintStylish))
.pipe(jshint.reporter('fail'));
});

// Build
Expand Down

0 comments on commit fe4ca9e

Please sign in to comment.