#Installation
Install package with NPM and add it to your development dependencies:
npm install gulp-rb-validate-js --save-dev
#Usage
Basic
var rbjs = require('gulp-rb-validate-js');
gulp.task('rb-validate', function () {
gulp.src('./src/**/*.js')
.pipe(rbjs());
});
With Parameter
var rbjs = require('gulp-rb-validate-js');
gulp.task('rb-validate', function () {
gulp.src('./src/**/*.js')
.pipe(rbjs({
abortOnError: true,
indent: '\t'
});
});
#Parameters
abortOnError: Boolean (Default: false)
This will cause the plugin to abort with exit code 1 as soon as an invalid file is detected.
indent: String (Default: 2 spaces)
Defines the standard indentation pattern for the project
checkindent: Boolean (Default: true)
Set to false to deactivate indentation checks altogether