eslint-formatter-multiple

raw JSON →
2.0.0 verified Sat Apr 25 auth: no javascript

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.

error Cannot find module 'eslint-formatter-multiple'
cause Package not installed or not in node_modules
fix
npm install --save-dev eslint-formatter-multiple
error Invalid formatter name 'stylish' (or other) – must be a valid ESLint formatter
cause Typos or missing dependency
fix
Check formatter spelling and ensure package is installed
breaking Version 2.0.0+ requires ESLint 8.x
fix Update ESLint to 8.x or use eslint-formatter-multiple@1.x for ESLint 7.x
gotcha Formatters must be installed separately
fix Install required formatters (e.g., npm install eslint-formatter-stylish)
gotcha File output path is relative to current working directory, not ESLint config
fix Use absolute path or ensure correct working directory
npm install eslint-formatter-multiple
yarn add eslint-formatter-multiple
pnpm add eslint-formatter-multiple

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/