Registry / testing / eslint-formatter-bottleneck

eslint-formatter-bottleneck

JSON →
library1.0.8jsnpmunverified

An ESLint formatter that reduces noise by only showing violations from a limited set of rules and files, focusing on the most impactful issues. Version 1.0.8 is the latest stable release; the package is rarely updated. It filters ESLint output to display only the most important violations, configured via environment variables. Simpler than other formatters like eslint-summary-chart-formatter or eslint-formatter-stylish.

npm install eslint-formatter-bottleneck
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-B
E
eslint-formatter-bottleneck
testingjavascriptv1.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

formatter
✓ eslint --format bottleneck src
✗ const formatter = require('eslint-formatter-bottleneck')
This package is a CLI formatter, not a JS module. Use via ESLint's --format flag.

Install the formatter, create a file with an ESLint error, and run ESLint with bottleneck format.

npm install --save-dev eslint eslint-formatter-bottleneck echo "/* eslint-disable no-unused-vars */\nlet x = 1;" > test.js eslint --format bottleneck test.js
Debug
Known issues
gotchaFormatters are loaded from ESLint's node_modules directory; running eslint from a different working directory may fail.
fix
Ensure eslint-formatter-bottleneck is installed in the same project as ESLint, or use --rulesdir to specify path.
affects: all
gotchaEnvironment variable MAX_VIOLATIONS must be set as a string, not a number; e.g., MAX_VIOLATIONS=50 not MAX_VIOLATIONS=50.0.
fix
Use MAX_VIOLATIONS=50 (no decimal point) in your shell or .env file.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-formatter-bottleneck'
The formatter is not installed or not in the ESLint node_modules tree.
fix
Run npm install --save-dev eslint-formatter-bottleneck in the project root.
TypeError: formatter is not a function
Attempting to require() the module as a Node.js object instead of using the --format flag.
fix
Use CLI: eslint --format bottleneck [files]
Upgrade
Version history
1.0.8latest on npm
Audit
Dependencies
eslintrequiredESLint peer dependency required to use this formatter
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-formatter-bottleneck — npm install eslint-formatter-bottleneck · libregistry