var gulp = require('gulp');
var eslint = require('gulp-eslint');

gulp.task('eslint', function () {
  gulp.src('./modules/**/*.js')
    .pipe(eslint())
    .pipe(eslint.formatEach('stylish', process.stderr))
    .pipe(eslint.failAfterError());
});

gulp.task('check', ['eslint']);

var gulp = require('gulp');
var eslint = require('gulp-eslint');

gulp.task('eslint', function () {
  gulp.src('./modules/**/*.js')
    .pipe(eslint())
    .pipe(eslint.formatEach('stylish', process.stderr))
    .pipe(eslint.failOnError());
});

gulp.task('check', ['eslint']);

--- 
+++ 
@@ -5,7 +5,7 @@
   gulp.src('./modules/**/*.js')
     .pipe(eslint())
     .pipe(eslint.formatEach('stylish', process.stderr))
-    .pipe(eslint.failAfterError());
+    .pipe(eslint.failOnError());
 });
 
 gulp.task('check', ['eslint']);
Make eslint fail *after* errors
