수색…


설치 및 사용법

설치

$ npm install gulp-jslint --save-dev

용법

gulpfile.js에서 다음을 추가하십시오.

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

이 작업을 위해 :

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


Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow