0.1.4 • Published 5 years ago

gulp-jshint-html-reporter v0.1.4

Weekly downloads
4,431
License
MIT
Repository
github
Last release
5 years ago

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