Recherche…


Installation et utilisation

Installation

$ npm install gulp-jslint --save-dev

Usage

Dans gulpfile.js ajoutez:

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' ));
});

pour utiliser cette tâche:

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


Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow