包详细信息

eslint-html-reporter

ratherblue92.2kMIT0.7.4

HTML Reporter for ESLint

eslint, reporter, teamcity

自述文件

ESLint HTML Reporter

Build Status Coverage Status License Dependencies devDependency Status

HTML Reporter for ESLint. Please report bugs to https://github.com/ratherblue/eslint-html-reporter/issues

Features:

  • Generates an HTML page with a summary of all linted files and their errors
  • Choice between detailed and "lite" output
  • Optional integration with TeamCity's console
  • Shows summary of all errors and warnings so you can easily identify top linting issues

Installation

npm install eslint-html-reporter

Usage

With ESLint CLI:

# Basic - Single file
eslint file.js -f node_modules/eslint-html-reporter/reporter.js -o report.html

# Basic - Recurse current directory
eslint . -f node_modules/eslint-html-reporter/reporter.js -o report.html

# "Lite" (same as Basic, but omits the detailed error messages)
eslint file.js -f node_modules/eslint-html-reporter/reporter-lite.js -o report.html

# TeamCity Basic
eslint file.js -f node_modules/eslint-html-reporter/reporter-team-city.js -o report.html

# TeamCity "Lite"
eslint file.js -f node_modules/eslint-html-reporter/reporter-lite-team-city.js -o report.html

With Gulp ESLint:

var eslint   = require('gulp-eslint');
var reporter = require('eslint-html-reporter');
var path     = require('path');
var fs       = require('fs');

gulp.src(['js/**/*.js'])
  .pipe(eslint())
  .pipe(eslint.format(reporter, function(results) {
      fs.writeFileSync(path.join(__dirname, 'report-results.html'), results);
    })
  );

License

MIT

更新日志

0.5.2 - April 7, 2016

Misc

  • Update status badges

0.5.1 - April 7, 2016

Misc

  • Update changelog
  • Update nodejs versions in travis build

0.5.0 - April 7, 2016

Misc

  • Updated to latest version of hairballs
  • Updated dev dependencies to latest versions

0.4.14 - August 6, 2015

Misc

  • Updated to latest version of hairballs (Changed overflow: scroll to overflow-y: auto to only show scroll bars when necessary)

0.4.13 - August 6, 2015

Bug fixes

  • Fixed warnings summary not showing if report contains no errors (rcoy-v)
  • Increased width of summaries to prevent line wrapping

Improvements

  • Changed to summary occurances show all warnings and errors (not just top five.) The occurances table will scroll if more than five different types of errors or warnings.

Misc

  • Updated to latest version of hairballs
  • Updated dev dependencies to latest versions