#Installation
Install package with NPM and add it to your development dependencies:
npm install gulp-rb-validate-jshint --save-dev
#Usage
Basic
var rbjshint = require('gulp-rb-validate-jshint');
gulp.task('rb-validate', function () {
gulp.src('./.jshintrc')
.pipe(rbjshint());
});
With Parameter
var rbjshint = require('gulp-rb-validate-jshint');
gulp.task('rb-validate', function () {
gulp.src('./.jshintrc')
.pipe(rbjshint({
abortOnError: true
});
});
#Parameters
abortOnError: Boolean (Default: false)
This will cause the plugin to abort with exit code 1 as soon as an invalid file is detected.