How to use the gulp-jshint.reporter function in gulp-jshint

To help you get started, we’ve selected a few gulp-jshint 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 Supertext / polylang-supertext / gulpfile.js View on Github external
function scripts() {
  console.info("Running scripts...");

  gulp.src(paths.scriptsDir + '/*-library.js')
    .pipe(jshint())
    .pipe(jshint.reporter('default'))
    .pipe(uglify())
    .pipe(header(banner, {
      packageInfo: packageInfo
    }))
    .pipe(rename({
      suffix: '.min'
    }))
    .pipe(gulp.dest(paths.scriptsDir));
}
github B-3PO / angular-material-expansion-panel / gulp / jsBuild.js View on Github external
return function dev() {
    return gulp.src(srcs, {base: paths.src})
      .pipe(wrap('(function(){"use strict";<%= contents %>}());'))
      .pipe(jshint())
      .pipe(jshint.reporter('default'))
      .pipe(gulp.dest(paths.dest))
      .on('end', function() {
        gutil.log(gutil.colors.green('✔ JS Dev'), 'Finished');
      });
  };
}
github B-3PO / angular-material-event-calendar / gulp / jsBuild.js View on Github external
return function dev() {
    return gulp.src(srcs, {base: paths.src})
      .pipe(wrap('(function(){"use strict";<%= contents %>}());'))
      .pipe(jshint())
      .pipe(jshint.reporter('default'))
      .pipe(gulp.dest(paths.dest))
      .on('end', function() {
        gutil.log(gutil.colors.green('✔ JS Dev'), 'Finished');
      });
  };
}
github dylanb / gulp-coverage / gulpfile.js View on Github external
function lint () {
    return gulp.src(['test/**/*.js', 'index.js', 'contrib/cover.js', 'contrib/coverage_store.js', 'contrib/reporters/**/*.js'])
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
}
github luc-github / ESP3D-WEBUI / gulpfile.js View on Github external
function lint() {
    return gulp.src('www/js/**/app.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
}
github meanie / angular-seed / build / tasks / lint.js View on Github external
module.exports = function lint() {

  //Files for testing
  let files = ['build/**/*.js'].concat(
    APP_JS_SRC,
    APP_TEST_SRC
  );

  return gulp.src(files)
    .pipe(cached('lint'))
    .pipe(jshint())
    .pipe(jscs())
    .on('error', function() {})
    .pipe(stylish.combineWithHintResults())
    .pipe(jshint.reporter('jshint-stylish'));
};
github luckylooke / dragular / gulpfile.js View on Github external
tasks.lint = gulp.series(function lint() {
  return gulp.src([config.dragular.scripts])
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'));
});
github gaowhen / task-master / gulp / task / lint.js View on Github external
function lint() {
  return gulp.src(files)
    .pipe(jshint(config.src.jshintrc))
    .pipe(jshint.reporter('jshint-stylish'))
    .pipe(jshint.reporter('fail'))
}
github adamreisnz / ngGo / gulpfile.js View on Github external
function lint() {
  return gulp.src([
    'src/**/*.js',
    'tests/**/*.spec.js'
  ]).pipe(cached('lint'))
    .pipe(jshint())
    .pipe(jscs())
    .on('error', noop)
    .pipe(stylish.combineWithHintResults())
    .pipe(jshint.reporter('jshint-stylish'));
}
github noopkat / avrgirl-arduino / gulpfile.js View on Github external
function lint() {
  return gulp.src(['tests/*.spec.js', 'tests/helpers/*.js', 'avrgirl-arduino.js', 'lib/*.js'])
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'))
    .pipe(jshint.reporter('fail'));
};

gulp-jshint

JSHint plugin for gulp

MIT
Latest version published 7 years ago

Package Health Score

57 / 100
Full package analysis

Popular gulp-jshint functions