eslint-formatter-mo

Good-lookin' ESLint formatter for delightful readability


Keywords
eslint, eslint-formatter, eslintformatter, formatter, pretty, fancy, readability
License
MIT
Install
npm install eslint-formatter-mo@2.0.0

Documentation

eslint-formatter-mo

npm version npm downloads semantic-release actions status

Good-lookin' ESLint formatter

screenshot

🎊 Obviously it's more human-readable 🎉🎉🎉

Note

This library was moved to ESM from v2.

If ESM doesn't work well with your Node.js version, check the 1.x version for CJS 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)

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, we now support 50+ VSCode syntax themes in v2.

And 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 you can find all the 50+ themes.

More screenshots

file-level-summary

summary

License

MIT