gulp-standard

gulp plugin for checking JavaScript code with the standard syntax

MIT 22 个版本
安装
npm install gulp-standard
yarn add gulp-standard
pnpm add gulp-standard
bun add gulp-standard
README

#gulp-standard Build Status NPM version

Standard linter for gulp

Information

Packagegulp-standard
Description Standard plugin for gulp
Node version >=6
gulp version 3.x

Usage

Install

$ npm install --save-dev gulp-standard

Examples

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

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

Reporters

Built-in

You can choose a reporter when you call

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

You can also use some other custom made reporter

var reporter = require(<SOME_REPORTER>)

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

OR -

stuff
  .pipe(standard())
  .pipe(standard.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

quiet

Type: boolean Default: false

Suppress success messages, only show errors

showRuleNames

Type: boolean Default: false

Show rule names for errors/warnings (to ignore specific rules)

showFilePath

Type: boolean Default: false

Show the full file path with the line and column numbers (useful for IDEs that will link to that location)

LICENSE MIT

版本列表
14.0.0 2019-08-25
13.1.0 2019-07-30
12.0.0 2018-09-12
11.0.0 2018-05-06
10.1.2 2018-01-31
10.1.1 2017-08-23
10.1.0 2017-08-09
10.0.0 2017-04-07
9.0.0 2017-03-01
8.0.4 2017-02-16
8.0.3 2016-12-12
8.0.2 2016-08-25
8.0.1 2016-08-24
8.0.0 2016-08-24
7.0.1 2016-05-16
6.0.5 2016-02-17
5.2.2 2015-09-08
5.1.0 2015-08-15
4.5.3 2015-07-12
0.0.3 2015-04-22
0.0.2 2015-03-31
0.0.1 2015-03-20