Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-stats with all npm packages installed. Try it out:

var eslintStats = require("eslint-stats")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-stats v1.0.1

A package of custom formatters that show aggregated stats of eslint errors

Coverage Status Build Status

#Statistic Reporter for ESLint. Analyses the files for error frequency, rather than location. This is helpful when introducing ESLint to an existing project.

screenshot

Install

npm install --save-dev eslint-stats

Getting Started

Use it with grunt:

...
  eslint: {
    options: {
      format: require('eslint-stats').byError,
      src: [...]
    },
...

or use it directly with ESLint:

$ eslint --format node_modules/eslint-stats/byError.js

Available Reporters:

byError

Shows the eslint report, aggragated by errors, without separation into specific files. Rules with warnings are not displayed

byWarning

Shows the eslint report, aggragated by warnings, without separation into specific files. Rules with errors are not displayed.

byErrorAndWarning

Shows the eslint report, aggragated by errors and warnings, without separation into specific files. Errors are red, and warnings are yellow.

byErrorAndWarningStacked

Shows the eslint report, aggragated by errors and warnings, without separation into specific files. Errors are red, and warnings are yellow. If any rule is an error in one file and a warning in another, results show up stacked.

byFolder

Shows the eslint report, aggragated by errors and warnings, separated into folders. Errors are red, and warnings are yellow.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free