How to use gulp-eslint - 10 common examples

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 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 danday74 / angular2-coverage / gulp / low-level-misc-tasks / eslint-hard.js View on Github external
core.gulp.task(TASK, () => {
  core.subHeading(TASK, 'Linting JavaScript');
  //noinspection JSCheckFunctionSignatures
  return core.gulp
    .src(core.config.files.js)
    .pipe(eslint())
    .pipe(eslint.format('stylish', process.stdout))
    .pipe(eslint.failAfterError())
    .on('error', () => {
      process.exit(1);
    });
});
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 hyperledger / fabric-chaincode-node / build / eslint.js View on Github external
gulp.task('lint', function () {
    return gulp.src([
        '**/*.js',
        '!fabric-contract-api/node_modules/**',
        '!fabric-shim/node_modules/**',
        '!test/node_modules/**',
        '!**/typescript/*.js',
        '!coverage/**',
        '!docs/**'
    ], {
        base: path.join(__dirname, '..')
    }).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 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());
});

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