Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T06:14:48.000Z (almost 2 years ago)
- Last Synced: 2024-12-24T19:40:05.642Z (about 1 month 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)
README
# eslint-formatter-mo
[![npm version](https://img.shields.io/npm/v/eslint-formatter-mo?style=flat-square)](https://www.npmjs.com/package/eslint-formatter-mo)
[![actions status](https://img.shields.io/github/actions/workflow/status/fengzilong/eslint-formatter-mo/release.yml?style=flat-square)](https://github.com/fengzilong/eslint-formatter-mo/actions/workflows/release.yml)
[![npm downloads](https://img.shields.io/npm/dm/eslint-formatter-mo?style=flat-square)](https://www.npmjs.com/package/eslint-formatter-mo)
[![awesome](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/dustinspecker/awesome-eslint)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](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)**# 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
# License
MIT