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');
var semistandard = require('gulp-semistandard');
gulp.task('semistandard', function () {
return gulp.src(['./app.js'])
.pipe(semistandard())
.pipe(semistandard.reporter('default', {
breakOnError: true,
quiet: true
}));
});
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))
Type: boolean
Default: false
Emit gulp error on reported error
Type: boolean
Default: false
Emit gulp error on reported warning
Type: boolean
Default: false
Prefix log messages with the plugin name
Type: boolean
Default: false
Suppress success messages, only show errors