📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

eslint-html-reporter

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-html-reporter

HTML Reporter for ESLint

0.4.4
Source
npm
Version published
Weekly downloads
19K
-1.82%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint HTML Reporter

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

Supports:

  • Detailed output (default)
  • "Lite" output (omits the detailed error messages)
  • TeamCity console output

To Do:

  • Write tests
  • Add "Lite" and TeamCity support to Gulp
  • Check if it works with Grunt
  • More CI support (Jenkins?)

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 © Evangelia Dendramis

Keywords

eslint

FAQs

Package last updated on 10 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts