eslint-formatter-overview

2.0.0 • Public • Published

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 .

Package Sidebar

Install

npm i eslint-formatter-overview

Weekly Downloads

35

Version

2.0.0

License

ISC

Unpacked Size

270 kB

Total Files

4

Last publish

Collaborators

  • biq