Skip to content

A simple formatter for ESLint which displays count, line- and column numbers in a file tree view

Notifications You must be signed in to change notification settings

ViggoV/eslint-overview-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

A simple formatter for ESLint which displays count, line- and column numbers in a file tree view

Resources

Stars

Watchers

Forks

Packages

No packages published