Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.