14.0.0 • Published 6 years ago

gulp-standard v14.0.0

Weekly downloads
776
License
MIT
Repository
github
Last release
6 years ago

#gulp-standard Build Status NPM version

Standard linter for gulp

Information

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

6 years ago

13.1.0

6 years ago

12.0.0

7 years ago

11.0.0

8 years ago

10.1.2

8 years ago

10.1.1

8 years ago

10.1.0

8 years ago

10.0.0

9 years ago

9.0.0

9 years ago

8.0.4

9 years ago

8.0.3

9 years ago

8.0.2

9 years ago

8.0.1

9 years ago

8.0.0

9 years ago

7.0.1

10 years ago

6.0.5

10 years ago

5.2.2

10 years ago

5.1.0

10 years ago

4.5.3

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago