JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1184
  • Score
    100M100P100Q99895F
  • License MIT

gulp plugin for checking JavaScript code with the standard syntax

Package Exports

  • gulp-standard

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-standard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#gulp-standard Build Status NPM version

Standard linter for gulp

Information

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

Usage

Install

$ npm install --save-dev gulp-standard

Examples

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

gulp.task('standard', function () {
  return gulp.src(['./app.js'])
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: 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

LICENSE MIT