How to use the gulp-eslint.failOnError function in gulp-eslint

To help you get started, we’ve selected a few gulp-eslint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github howardabrams / node-mocks-http / gulpfile.js View on Github external
gulp.task('lint', function () {
    return gulp.src(files.src.concat(files.test))
        .pipe(eslint({
            // configFile: './.eslintrc',
            useEslintrc: true
        }))
        .pipe(eslint.format())
        .pipe(eslint.failOnError());
});
github Clarifai / clarifai-javascript / gulpfile.js View on Github external
function failOnError() {
  return gulp.src(['./src/**/*.js'])
    .pipe(eslint(lintOptions))
    .pipe(eslint.format())
    .pipe(eslint.failOnError().on('error', function(e) {
      console.log('jslint error:', e);
      process.exit(1);
    }));
}
github makotot / react-scrollspy / gulpfile.js View on Github external
gulp.task('lint', function () {

  gulp
    .src(['./src/js/**/*.js', './src/js/**/*.jsx'])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failOnError());
});
github sgtcloud / sgtcloud-html5-sdk / gulpfile.js View on Github external
gulp.task('lint', function() {
    gulp.src(options.lintPaths)
        .pipe(eslint())
        .pipe(eslint.formatEach())
        .pipe(eslint.failOnError());
});
github senecajs / seneca-web / gulpfile.js View on Github external
function lintFiles(files) {
  return gulp.src(files)
    .pipe(gulpFilter(['*.js']))
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failOnError())
}

gulp-eslint

A gulp plugin for processing files with ESLint

MIT
Latest version published 5 years ago

Package Health Score

53 / 100
Full package analysis