Standalone ESLint compact formatter package republishing ESLint's built-in compact output format. Version 9.0.1 requires Node.js ^18.18.0 || ^20.9.0 || >=21.1.0. Ships TypeScript declarations. Released infrequently, mirrors ESLint's own formatter. No extra features vs. ESLint's built-in; useful for programmatic usage or when the built-in formatter is not available.
npm install eslint-formatter-compactNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the formatter programmatically with ESLint's API, including loading the formatter from the package.
Upgrade Node.js to ^18.18.0 || ^20.9.0 || >=21.1.0.
Use import or dynamic import(). For CommonJS projects, use dynamic import e.g. const formatter = await import('eslint-formatter-compact').then(m => m.default);For colored output, use the `stylish` formatter instead.
Ensure ESLint version matches the formatter's ESLint peer dependency (check package.json).
Run npm install eslint-formatter-compact --save-dev
Ensure the formatter is installed and use correct path: --format eslint-formatter-compact
Use default import: import formatter from 'eslint-formatter-compact'