How to use the jshint.reporter function in jshint

To help you get started, we’ve selected a few 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 gulp-cookery / gulp-chef / src / tasks / lint.js View on Github external
function lintTask(config) {
    // lazy loading required modules.
    var gulp = require('gulp');
    var jshint = require('jshint');

    return gulp.src(config.src)
        .pipe(jshint('.jshintrc'))
        .pipe(jshint.reporter('default'));
}