gulp

Show errors with gulp-jslint

Installation and usage

Installation

$ npm install gulp-jslint --save-dev

Usage

In gulpfile.js add:

var gulp = require('gulp');
var jslint = require('gulp-jslint');

gulp.task('lint', function(){
    return gulp.src(['source.js'])
        .pipe(jslint({ /* this object represents the JSLint directives being passed down */ }))
        .pipe(jslint.reporter( 'my-reporter' ));
});

for use this task:

$ ./node_modules/gulp/bin/gulp.js lint

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow