eslint-formatter-mo

February 19, 2025 ยท View on GitHub

npm version actions status npm downloads awesome semantic-release

Good-lookin' ESLint formatter

screenshot

๐ŸŽŠ Obviously it's more human-readable ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Note

This library was moved to ESM from v2.

If v2 doesn't work well with your Node.js version, check the 1.x version for better compatibility.

Features

  • ๐ŸŽฏ Line number
  • ๐ŸŒˆ Code highlight
  • โš“๏ธ Position pointer
  • ๐Ÿฆ„ Error/Warning detail
  • ๐Ÿป Auto-fixable is also marked
  • ๐Ÿ“„ File-level summary
  • ๐Ÿ“‹ Total summary
  • ๐Ÿฅณ Support 50+ VSCode Syntax themes (New feature from v2)
  • ๐ŸŽŠ Support JSON/Markdown/CSS syntax highlighting (New feature from v2)

Installation

npm i eslint-formatter-mo -D

Usage

Simply append -f mo to your eslint command

eslint [patterns] -f mo

-f is short for --format

See ESLint Formatters for detail

Themes

Thanks to shiki, now we support 50+ VSCode syntax themes in v2.

You can choose your favorite theme by specifying MO_THEME environment variable.

MO_THEME=<theme_id> eslint [patterns] -f mo
theme_idpreview
one-dark-proone-dark-pro
draculadracula
night-owlnight-owl
vitesse-darkvitesse-dark
nordnord
......

Here are the all available 50+ VSCode syntax themes.

More screenshots

Summary

file-level-summary summary

More languages

JSON

JSON

Markdown

Markdown

CSS

CSS

License

MIT