Registry / testing / eslint-formatter-multiple

eslint-formatter-multiple

JSON →
library2.0.0jsnpmunverified

A meta formatter for ESLint that allows outputting lint results to multiple formats simultaneously (e.g., console and file). Version 2.0.0 works with ESLint 8+. Configured via package.json, it supports any ESLint formatter (stylish, checkstyle, etc.) and can write to console or file. Unlike default ESLint which only supports one --format, this plugin enables multi-format output in a single run.

npm install eslint-formatter-multiple
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-M
E
eslint-formatter-multiple
testingjavascriptv2.0.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ import formatter from 'eslint-formatter-multiple'
✗ const formatter = require('eslint-formatter-multiple')
ESM-only; use dynamic import or configure as module in package.json
config
✓ /* no import needed; configure in package.json under eslint-formatter-multiple key */
✗ const config = require('eslint-formatter-multiple')
Configuration is via package.json, not import
cli usage
✓ eslint --format eslint-formatter-multiple src/
✗ eslint --format multiple src/
Formatters are resolved by name; must match package name exactly

Configure multiple ESLint formatters (stylish to console, checkstyle to file) via package.json and run ESLint with the --format flag.

// package.json { "eslint-formatter-multiple": { "formatters": [ { "name": "stylish", "output": "console" }, { "name": "checkstyle", "output": "file", "path": "eslint-checkstyle.xml" } ] } } // Run ESLint with the meta formatter: // eslint --format eslint-formatter-multiple src/
Debug
Known issues
breakingVersion 2.0.0+ requires ESLint 8.x
fix
Update ESLint to 8.x or use eslint-formatter-multiple@1.x for ESLint 7.x
affects: >=2.0.0
gotchaFormatters must be installed separately
fix
Install required formatters (e.g., npm install eslint-formatter-stylish)
affects: *
gotchaFile output path is relative to current working directory, not ESLint config
fix
Use absolute path or ensure correct working directory
affects: *
Errors
Common errors & fixes
Cannot find module 'eslint-formatter-multiple'
Package not installed or not in node_modules
fix
npm install --save-dev eslint-formatter-multiple
Invalid formatter name 'stylish' (or other) – must be a valid ESLint formatter
Typos or missing dependency
fix
Check formatter spelling and ensure package is installed
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency; this is an ESLint formatter plugin
Agent activity
5 hits · last 30 days
node
4
Bingbot
1
Resources
eslint-formatter-multiple — npm install eslint-formatter-multiple · libregistry