🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gulp-rb-validate-js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rb-validate-js

Gulp plugin to validate JS files according to Web Frontend Guidelines

0.0.10
npm
Version published
Maintainers
1
Created
Source

#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({
            exitOnError: true,
            indent: '\t'
         });
        
    });

#Parameters

exitOnError: Boolean (Default: false)

This will cause the plugin to abort with exit code 1 as soon as an error with obligation level red is found

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

Keywords

validator

FAQs

Package last updated on 24 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts