Registry / devops / eslint-output

eslint-output

JSON →
library4.0.2jsnpmunverified

A wrapper around ESLint that exports multiple report formats (e.g., stylish, junit, gitlab) in a single run. v4.0.2 supports ESLint >=9 with Flat Config only. Configure via eslintoutput.config.js and CLI overrides. Releases are infrequent, with major version bumps tied to ESLint peer dep changes. Differentiator: eliminates need for multiple lint runs to get different formatters.

npm install eslint-output
INSTALL
IMPORT
SIG · ESLINT-OUTPUT
E
eslint-output
devopsjavascriptv4.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

default (no named export)
npm install --save-dev eslint-output
import eslintOutput from 'eslint-output'
eslint-output is a CLI tool, not a library. Do not import it in code.
eslint-output (CLI command)
npx eslint-output
require('eslint-output')
Use as a script in package.json, not required programmatically.
ESLint config
const config = require('./eslintoutput.config.js')
import config from './eslintoutput.config.js'
Config file uses CommonJS (module.exports). ESLint config itself may be ESM.

Basic configuration with two formatters: console output and file output.

// eslintoutput.config.js module.exports = { files: ['.'], formats: [ { name: 'stylish', output: 'console' }, { name: 'junit', output: 'file', path: 'tmp/junit.xml' } ] }; // package.json "scripts": { "lint": "eslint-output" } // Run npm run lint
eslint-output --version
Debug
Known issues
breakingConfig file renamed to eslintoutput.config.js in v4 (was eslintoutput.config.json or .js)
fix
Rename config file to eslintoutput.config.js and ensure it uses module.exports.
affects: >=4.0.0
breakingESLint peer dependency bumped to >=9; removed support for ESLint <9
fix
Upgrade ESLint to v9 or later.
affects: >=4.0.0
breakingFlat Config required; eslintrc configs no longer supported
fix
Migrate to ESLint Flat Config (eslint.config.js).
affects: >=4.0.0
deprecatedBuilt-in formatters removed from ESLint core (e.g., junit, gitlab, html)
fix
Install external formatters like eslint-formatter-junit.
affects: >=3.0.0
gotchaFile paths are relative to cwd; may not resolve as expected in monorepos
fix
Use absolute paths or run from correct directory.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'eslint'
ESLint not installed or version mismatch
fix
npm install --save-dev eslint@^9
Configuration file 'eslintoutput.config.js' not found
Config file missing or wrong path
fix
Create eslintoutput.config.js in project root.
Error: Unsupported format 'junit'
Formatters removed from ESLint core
fix
npm install --save-dev eslint-formatter-junit
Error while loading rule '...': Rule is not found
ESLint Flat Config migration issue
fix
Ensure all plugins are installed and listed in flat config.
Upgrade
Version history
4.0.2latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: requires ESLint >=9 to run
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-output — npm install eslint-output · libregistry