Show errors with gulp-jslint

Other topics

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

Contributors

Topic Id: 7415

Example Ids: 24556

This site is not affiliated with any of the contributors.