Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devunt/eslint-plugin-unocss
ESLint plugin for UnoCSS
https://github.com/devunt/eslint-plugin-unocss
eslint eslint-plugin unocss
Last synced: 3 months ago
JSON representation
ESLint plugin for UnoCSS
- Host: GitHub
- URL: https://github.com/devunt/eslint-plugin-unocss
- Owner: devunt
- License: mit
- Created: 2022-09-06T02:31:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T06:45:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T20:01:14.113Z (3 months ago)
- Topics: eslint, eslint-plugin, unocss
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 86
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESLint plugin for UnoCSS
This is a proof of concept ESLint plugin for [UnoCSS](https://github.com/unocss/unocss).
**Not ready for production use yet**
## Installation
```bash
$ pnpm add -D eslint-plugin-unocss
```## Configuration
Use our preset to get reasonable defaults:
```yaml
extends:
- plugin:unocss/recommended
```## Exported rules
- `unocss/classnames-order` - Enforce a specific order for class names in your code.
- `unocss/no-duplicated-classnames` - Disallow duplicate class names in your code.
- `unocss/no-excessive-whitespaces` - Disallow excessive whitespaces in your code.