https://github.com/fengzilong/eslint-formatter-mo
Good-lookin' ESLint formatter for delightful readability
https://github.com/fengzilong/eslint-formatter-mo
eslint eslint-formatter eslintformatter fancy formatter pretty readability
Last synced: 23 days ago
JSON representation
Good-lookin' ESLint formatter for delightful readability
- Host: GitHub
- URL: https://github.com/fengzilong/eslint-formatter-mo
- Owner: fengzilong
- License: mit
- Created: 2020-02-22T06:35:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T06:14:48.000Z (about 2 years ago)
- Last Synced: 2024-12-24T19:40:05.642Z (4 months ago)
- Topics: eslint, eslint-formatter, eslintformatter, fancy, formatter, pretty, readability
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 126
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-eslint - mo - Good-lookin' ESLint formatter and also for delightful reading experience. (Formatters / Testing Tools)
- fucking-awesome-eslint - mo - Good-lookin' ESLint formatter and also for delightful reading experience. (Formatters / Testing Tools)
- fucking-awesome-eslint - mo - Good-lookin' ESLint formatter and also for delightful reading experience. (Formatters / Testing Tools)
README
# eslint-formatter-mo
[](https://www.npmjs.com/package/eslint-formatter-mo)
[](https://github.com/fengzilong/eslint-formatter-mo/actions/workflows/release.yml)
[](https://www.npmjs.com/package/eslint-formatter-mo)
[](https://github.com/dustinspecker/awesome-eslint)
[](https://github.com/semantic-release/semantic-release)Good-lookin' ESLint formatter
🎊 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
```shell
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](https://eslint.org/docs/latest/use/formatters/#eslint-formatters) for detail
# Themes
Thanks to [shiki](https://github.com/shikijs/shiki), now we support 50+ VSCode syntax themes in v2.
You can choose your favorite theme by specifying `MO_THEME` environment variable.
```shell
MO_THEME= eslint [patterns] -f mo
```theme_id | preview |
---------|----------
one-dark-pro |![]()
dracula |![]()
night-owl |![]()
vitesse-dark |![]()
nord |![]()
... | ...[Here](https://shiki.style/themes) are the all available 50+ VSCode syntax themes.
# More screenshots
## Summary
## More languages
JSON
Markdown
CSS
# License
MIT