2.0.0 • Published 9 months ago

eslint-formatter-overview v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

ESLint Overview Formatter

A simple formatter for ESLint, which prints an overview of a project showing offending files in a tree structure.

Install with NPM

$ npm install eslint-overview-formatter --save-dev

Usage and output

The output looks something like this, listing all files with errors or warnings. Errors and warnings are listed as an array of objects with the shape RULE(LINE:COLUMN)

Example output

To use a custom formatter with ESLint, you can pass the --format (or -f) flag the path for the formatter. If you installed with NPM;

$ eslint --format ./node_modules/eslint-overview-formatter .

form the project root should do the trick.

Show all files

If you want to show all files in the project, errors or not, you can set an environment variable called OVERVIEW_FORMATTER_SHOW_ALL to true.

$ OVERVIEW_FORMATTER_SHOW_ALL=true eslint --format ./node_modules/eslint-overview-formatter .