Skip to content

claydiffrient/gulp-semistandard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#gulp-semistandard Build Status NPM version

Semi-Standard linter for gulp

Information

Packagegulp-semistandard
Description Check JavaScript code against the semistandard coding style
Node version >= 0.9
gulp version 3.x

Usage

Install

$ npm install --save-dev gulp-semistandard

Examples

// include the required packages.
var gulp = require('gulp'),
  semistandard = require('gulp-semistandard')

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

Reporters

Built-in

You can choose a reporter when you call

stuff
  .pipe(semistandard())
  .pipe(semistandard.reporter('default', opts))
External

You can also use some other custom made reporter

var reporter = require(<SOME_REPORTER>);

stuff
  .pipe(semistandard())
  .pipe(semistandard.reporter(reporter, opts))

OR -

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

Reporter options

breakOnError

Type: boolean Default: false

Emit gulp error on reported error

breakOnWarning

Type: boolean Default: false

Emit gulp error on reported warning

LICENSE MIT

About

Standard linter for gulp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%