How to use the gulp-eslint.failAfterError 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 mattboldt / typed.js / gulpfile.js View on Github external
gulp.task('lint', () => {
  return (
    gulp
      .src('src/*.js')
      // default: use local linting config
      .pipe(eslint())
      // format ESLint results and print them to the console
      .pipe(eslint.format())
      .pipe(eslint.failAfterError())
  );
});
github moribvndvs / ng2-idle / config / gulp / linting.js View on Github external
gulp.task('eslint', () => {
  return gulp.src(config.PATHS.src.js)
    .pipe(eslint({
      rulePaths: [path.join(__dirname, '../../')]
    }))
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});
github lytics / pathforajs / gulpfile.js View on Github external
gulp.task('lint', ['build:js'], function () {
  return gulp.src(['src/rollup/**/*.js', 'gulpfile.js', 'test/**/*.js', 'docs/docs/examples/**/*.js'])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});
github niklasramo / mezr / gulpfile.js View on Github external
gulp.task('lint', function () {
  return gulp.src('./' + pkg.main)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});
github jsdoc / jsdoc / gulpfile.js View on Github external
function lint() {
    return gulp.src(options.lintPaths)
        .pipe(eslint())
        .pipe(eslint.formatEach())
        .pipe(eslint.failAfterError());
}
github reixs / reixs / gulpfile.js View on Github external
function lint() {
    return src(['*.js', 'src/*.js', 'src/**/*.js'])
        .pipe(eslint())
        .pipe(eslint.format())
        .pipe(eslint.failAfterError())
}
github gaowhen / gon / bin / gulp / eslint.js View on Github external
module.exports = exports = function lint() {
  return gulp.src(files)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError())
}
github polonel / trudesk / src / public / js / vendor / easymde / gulpfile.js View on Github external
function lint () {
    return gulp
        .src('./src/js/**/*.js')
        .pipe(eslint())
        .pipe(eslint.format())
        .pipe(eslint.failAfterError())
}
github mockyeah / mockyeah / tasks / lint.js View on Github external
function lint(options) {
  options = options || { exit: true };

  return gulp
    .src(PATH.scripts)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(options.exit ? eslint.failAfterError() : gutil.noop());
}

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