Ever had > 1k eslint issues? 🤯
The interactive eslint-formatter comes to the rescue. 🛟⛑️
Note: The idea of this formatter is inspired by the great tool eslint-nibble by IanVS.
eslint-formatter-interactive summarizes the eslint result for you, while also offering an interactive way to inspect the details. An integration with the eslint autofix feature is planned.
- Interactive Interface: Navigate through eslint issues interactively.
- Efficient Fixes: Quickly identify and fix eslint errors and warnings.
- Developer-Friendly: Designed to be easy to use, even with a large number of issues.
eslint-formatter-interactive is not intended to be the primary formatter of your tool. E.g. it requires an interactive shell and is therefore not wuited to run in an CI or similar. It is therefore also not meant to be kept in your project and is recommended to be installed with the --no-save
flag.
To install the eslint-formatter-interactive, run:
npm install --no-save eslint-formatter-interactive
To use the formatter just run:
npx eslint . --format interactive
eslint-formatter-interactive will print a small summary and will give you the choice to group the results by rule or by file:
After choosing the grouping variable a rundown off all findings grouped by the chosen grouping variable will be shown. You can now select all the groups you want to see the details of.
(In future eslint-formatter-interactive will integrate the eslint auto fix feature in this place)
Last but not least: the details will be printed using the eslint stylish formatter.
This project is licensed under the MIT License. See the LICENSE file for details.