gulp-jshint-html-reporter

0.1.4 • Public • Published

gulp-jshint-html-reporter

A simple reporter for gulp-jshint that writes it's output to a html file which looks pretty.

Installation

$: npm install gulp-jshint-html-reporter --save

Usage

var gulp = require("gulp");
var jshint = require("gulp-jshint");
 
gulp.task("lint", function() {
  return gulp
    .src("./lib/*.js")
    .pipe(jshint())
    .pipe(
      jshint.reporter("gulp-jshint-html-reporter", {
        filename: __dirname + "/jshint-output.html",
        createMissingFolders: false
      })
    );
});

Options

Plugin options:

Type: filename Default: "jshint-output.html"

The filename to write output from jshint. When linting is successfull, the file is not created.

Type: createMissingFolders Default: false

Enables or disables creation of any folders given in the filename that do not exist. If disabled and the given path contains folders which do not exist, an ENOENT error is thrown.

License

MIT © the-phoenix

Release History

  • 0.1.0 Initial release
  • 0.1.1 Minor fix with configuration
  • 0.1.2 Minor bug fix on jshint output file
  • 0.1.3 Add option for create missing folder

Package Sidebar

Install

npm i gulp-jshint-html-reporter

Weekly Downloads

1,460

Version

0.1.4

License

MIT

Unpacked Size

8.88 kB

Total Files

10

Last publish

Collaborators

  • the-phoenix