Registry / testing / eslint-formatter-mo

eslint-formatter-mo

JSON →
library2.4.1jsnpmunverified

Good-lookin' ESLint formatter for delightful readability. Current stable version is 2.4.1, released November 2025, with regular updates. Key differentiators: colorful output with code highlighting via Shiki, support for 50+ VS Code themes, JSON/Markdown/CSS highlighting, and auto-fixable markers. ESM-only since v2 (breaking change). Active maintenance with frequent bug fixes.

npm install eslint-formatter-mo
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-M
E
eslint-formatter-mo
testingjavascriptv2.4.1
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
import eslintFormatterMo from 'eslint-formatter-mo'
const eslintFormatterMo = require('eslint-formatter-mo')
ESM-only since v2; CommonJS require will fail.
default (as formatter function)
import mo from 'eslint-formatter-mo'; eslint.lintFiles(patterns).then(results => console.log(mo(results)))
const mo = require('eslint-formatter-mo');
The default export is a function that takes ESLint results and returns a formatted string.
TypeScript type (if provided)
import type { ESLintFormatter } from 'eslint-formatter-mo'
Types may be bundled; check package for type definitions.

Shows installation as dev dependency, CLI usage with `-f mo`, programmatic use with import, and custom theme via environment variable.

// Install: npm i eslint-formatter-mo -D // Use as ESLint formatter via CLI: // eslint src/ -f mo // Or programmatically: import mo from 'eslint-formatter-mo'; import { ESLint } from 'eslint'; const eslint = new ESLint(); const results = await eslint.lintFiles(['src/']); const formatted = mo(results); console.log(formatted); // Custom theme via env var: // MO_THEME=dracula eslint src/ -f mo
Debug
Known issues
breakingv2.0.0 moved to ESM only. CommonJS require() will throw an error.
fix
Use import syntax or upgrade to Node 18+ with "type": "module" in package.json.
affects: >=2.0.0
deprecatedv1.x is no longer maintained. Users should upgrade to v2.x.
fix
Upgrade to v2.4.1 and migrate to ESM.
affects: <2.0.0
gotchaThe formatter uses Shiki for syntax highlighting, which requires network access for theme loading on first use.
fix
Ensure network access or pre-cache themes. The package will work without highlighting if offline.
affects: >=2.0.0
gotchaEnvironment variable MO_THEME must be set before running ESLint, not during.
fix
Set MO_THEME in your shell or .env file before calling eslint.
affects: >=2.0.0
gotchaOutput is designed for terminals; may not render correctly in CI logs or non-TTY environments.
fix
Use --no-color or pipe output to a file for non-TTY environments.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-formatter-mo'
Package not installed or not in node_modules.
fix
Run `npm install eslint-formatter-mo --save-dev`.
require() of ES Module eslint-formatter-mo from CommonJS not supported.
Using CommonJS require() with ESM-only v2+.
fix
Use `import` syntax or downgrade to v1.x (not recommended).
Error: Cannot access 'ruleId' before initialization
Bug in v2.4.0 fixed in v2.4.1.
fix
Upgrade to v2.4.1 or later.
Upgrade
Version history
2.4.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
eslint-formatter-mo — npm install eslint-formatter-mo · libregistry