Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ianvs/eslint-stats

ganimomer337.2kMIT2.0.0

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

readme

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.

Forked from https://github.com/ganimomer/eslint-stats

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.