gas

gulp-any-standard

gulp plugin for checking JavaScript code with the standard syntax

Showing:

Popularity

Downloads/wk

5

Maintenance

No Maintenance Data Available

Package

Dependencies

5

Size (min+gzip)

5.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

#gulp-any-standard

Build Status NPM version

Standard linter for gulp, using dependency injection to allow use of any standard.

Usage

Install

$ npm install --save-dev gulp-any-standard

Examples

// include the required packages.
var gulp = require('gulp')
var gulpStandard = require('gulp-any-standard')
var standard = require('standard')

gulp.task('standard', function () {
  return gulp.src(['./app.js'])
    .pipe(gulpStandard(standard))
    .pipe(gulpStandard.reporter('default', {
      breakOnError: true
    }))
})

Reporters

Built-in

You can choose a reporter when you call

stuff
  .pipe(gulpStandard(standard))
  .pipe(gulpStandard.reporter('default', opts))
External

You can also use some other custom made reporter

var reporter = require(<SOME_REPORTER>);

stuff
  .pipe(gulpStandard(standard))
  .pipe(gulpStandard.reporter(reporter, opts))

OR -

stuff
  .pipe(gulpStandard(standard))
  .pipe(gulpStandard.reporter(<REPORTER NAME>, opts))

Reporter options

breakOnError

Type: boolean Default: false

Emit gulp error on reported error

LICENSE MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100