johnpapa / pluralsight-gulp

Starter Code for Pluralsight Course "JavaScript Build Automation with Gulp.js"
http://jpapa.me/gulpps
MIT License
158 stars 262 forks source link

gulp-jscs requires reporter #36

Open a2k42 opened 8 years ago

a2k42 commented 8 years ago

When running the first task, gulp vet, no output was generated from jscs.

It appears that gulp-jscs now needs a reporter like jshint:

gulp.task('vet', function() {
    console.log('vetting');
    return gulp
        .src([
            './src/**/*.js',
            './*.js'
        ])
        .pipe(jscs())
        .pipe(jscs.reporter())
        .pipe(jshint())
        .pipe(jshint.reporter('jshint-stylish', {verbose: true}));
});

Thanks to EdinM for that one.