Semi-Standard linter for gulp
| Package | gulp-semistandard |
| Description | Check JavaScript code against the semistandard coding style |
| Node version | >= 0.9 |
| gulp version | 3.x |
$ npm install --save-dev gulp-semistandard// 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
}))
})You can choose a reporter when you call
stuff
.pipe(semistandard())
.pipe(semistandard.reporter('default', opts))
ExternalYou 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))Type: boolean
Default: false
Emit gulp error on reported error
Type: boolean
Default: false
Emit gulp error on reported warning
