パッケージの詳細

eslint-formatter-mo

fengzilong77.7kMIT2.3.0

Good-lookin' ESLint formatter for delightful readability

eslint, eslint-formatter, eslintformatter, formatter

readme

eslint-formatter-mo

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_id preview
one-dark-pro one-dark-pro
dracula dracula
night-owl night-owl
vitesse-dark vitesse-dark
nord nord
... ...

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

更新履歴

2.3.0 (2025-02-19)

Features

  • support JSON/Markdown/CSS highlighting (#34) (5c676b3)

2.2.0 (2025-01-23)

Features

  • sort files by errorCount and warningCount (cda839c)

2.1.0 (2025-01-15)

Features

2.0.0 (2025-01-08)

Features

  • use shiki to highlight code and move to ESM (#31) (17cd74c)

BREAKING CHANGES

  • move to ESM

1.3.1 (2025-01-07)

Bug Fixes

1.3.0 (2025-01-05)

Features

  • support hyperlink for file (ff6f095)

1.2.1 (2024-12-26)

Bug Fixes

  • remove bgBlack which makes text invisible in white background terminal (19c732b)

1.2.0 (2022-08-31)

Features

1.1.0 (2021-10-01)

Features

  • use full width - and full height │ (c35aae6)

1.0.1 (2021-04-24)

Bug Fixes

1.0.0 (2020-03-05)

Bug Fixes

  • hide files with no error/warning (a72ee31)

Features