adametry / gulp-eslint

A Gulp plugin for identifying and reporting on patterns found in ECMAScript/JavaScript code.
MIT License
563 stars 118 forks source link

Gulp swallowing eslint output if there are too many files #267

Open Yuriy-Svetlov opened 3 years ago

Yuriy-Svetlov commented 3 years ago

Hello! Thank you for your plugin!)

I have problem. When there are many files, they are not displayed.

gulp.task(JS, async function () {
    process.env.NODE_ENV = 'production';
    //process.env.NODE_ENV = 'development';
    return gulp.src(JS_SRC)
      .pipe(plumber())  
      .pipe(bro({
            transform: [
              babelify.configure({  presets: ['@babel/env'] }),
              ['browserify-postcss', {  plugin: ['postcss-import'] }],
              ['loose-envify'],
              ['blissify']
            ]
          })
      )
      .pipe(gulp.dest(JS_DEST));
});

gulp.task(ESLINT, function () {
  return gulp.src(ESLINT_SRC) 
    .pipe(plumber())  
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError()); 
});

gulp.task('w', gulp.series('watch', HTML__INDEX, HTML__APP, ESLINT, JS));

// Additional information https://stackoverflow.com/questions/38825294/gulp-eslint-not-throwing-any-error-on-console