{"id":19648,"library":"eslint-formatter-multiple","title":"eslint-formatter-multiple","description":"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.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/halkeye/eslint-formatter-multiple","tags":["javascript","eslint","eslint-formatter","eslintformatter"],"install":[{"cmd":"npm install eslint-formatter-multiple","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-formatter-multiple","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-formatter-multiple","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; this is an ESLint formatter plugin","package":"eslint","optional":false}],"imports":[{"note":"ESM-only; use dynamic import or configure as module in package.json","wrong":"const formatter = require('eslint-formatter-multiple')","symbol":"default","correct":"import formatter from 'eslint-formatter-multiple'"},{"note":"Configuration is via package.json, not import","wrong":"const config = require('eslint-formatter-multiple')","symbol":"config","correct":"/* no import needed; configure in package.json under eslint-formatter-multiple key */"},{"note":"Formatters are resolved by name; must match package name exactly","wrong":"eslint --format multiple src/","symbol":"cli usage","correct":"eslint --format eslint-formatter-multiple src/"}],"quickstart":{"code":"// package.json\n{\n  \"eslint-formatter-multiple\": {\n    \"formatters\": [\n      {\n        \"name\": \"stylish\",\n        \"output\": \"console\"\n      },\n      {\n        \"name\": \"checkstyle\",\n        \"output\": \"file\",\n        \"path\": \"eslint-checkstyle.xml\"\n      }\n    ]\n  }\n}\n\n// Run ESLint with the meta formatter:\n// eslint --format eslint-formatter-multiple src/","lang":"json","description":"Configure multiple ESLint formatters (stylish to console, checkstyle to file) via package.json and run ESLint with the --format flag."},"warnings":[{"fix":"Update ESLint to 8.x or use eslint-formatter-multiple@1.x for ESLint 7.x","message":"Version 2.0.0+ requires ESLint 8.x","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Install required formatters (e.g., npm install eslint-formatter-stylish)","message":"Formatters must be installed separately","severity":"gotcha","affected_versions":"*"},{"fix":"Use absolute path or ensure correct working directory","message":"File output path is relative to current working directory, not ESLint config","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-formatter-multiple","cause":"Package not installed or not in node_modules","error":"Cannot find module 'eslint-formatter-multiple'"},{"fix":"Check formatter spelling and ensure package is installed","cause":"Typos or missing dependency","error":"Invalid formatter name 'stylish' (or other) – must be a valid ESLint formatter"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}