Registry / devops / eslint-formatter-multiple-async

eslint-formatter-multiple-async

JSON →
library2.0.0jsnpmunverified

A meta-formatter for ESLint that runs multiple output formatters (e.g., stylish to console and checkstyle to file) in a single pass. Version 2.0.0 uses an async API and is ESM-only. Provides a configuration-driven approach via package.json or config file, allowing flexible output paths and console logging. Unlike alternatives that only write to disk, this supports console output and custom formatter names.

npm install eslint-formatter-multiple-async
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-M
E
eslint-formatter-multiple-async
devopsjavascriptv2.0.0
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.

default
import formatter from '@magarcia/eslint-formatter-multiple'
const formatter = require('@magarcia/eslint-formatter-multiple')
ESM-only export; CommonJS require will fail.

Configure eslint-formatter-multiple to output stylish to console and checkstyle to a file.

// .eslintrc.js module.exports = { plugins: ['@magarcia/eslint-formatter-multiple'], formatter: 'multiple', }; // package.json { "eslint-formatter-multiple": { "formatters": [ { "name": "stylish", "output": "console" }, { "name": "checkstyle", "output": "file", "path": "eslint-checkstyle.xml" } ] } }
Debug
Known issues
breakingVersion 2.x requires ESM; CommonJS require() will throw an error.
fix
Use dynamic import() or migrate to ESM.
affects: >=2.0.0
gotchaThe package is published under @magarcia scope, not the GitHub repo name 'halkeye/eslint-formatter-multiple'.
fix
Install as 'npm install --save-dev @magarcia/eslint-formatter-multiple'.
affects: *
deprecatedConfiguration via package.json 'eslint-formatter-multiple' key is deprecated in favor of a config file.
fix
Use .eslintrc.json or eslint-formatter-multiple.config.js.
affects: <3.0.0
gotchaIf no output path is specified for file formatters, the formatter will silently fail to write.
fix
Always provide a 'path' property when 'output' is 'file'.
affects: *
Errors
Common errors & fixes
Cannot find module '@magarcia/eslint-formatter-multiple'
Installed the wrong package name (halkeye/eslint-formatter-multiple) or missing devDependency.
fix
Run: npm install --save-dev @magarcia/eslint-formatter-multiple
Error: Requires an async formatter. Received a sync function.
Using an older synchronous formatter with the async API of version 2.x.
fix
Update formatters to return a Promise, or use a wrapper.
Configuration must define an array of formatters
Missing or malformed 'formatters' array in configuration.
fix
Ensure your config has a 'formatters' array with at least one object containing 'name' and 'output'.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
eslint-formatter-multiple-async — npm install eslint-formatter-multiple-async · libregistry