Skip to content
On this page

ESLint Config

ESLint config for UnoCSS: @unocss/eslint-config.

Installation

bash
pnpm add -D @unocss/eslint-config
pnpm add -D @unocss/eslint-config
bash
yarn add -D @unocss/eslint-config
yarn add -D @unocss/eslint-config
bash
npm install -D @unocss/eslint-config
npm install -D @unocss/eslint-config

In .eslintrc:

json
{
  "extends": [
    "@unocss"
  ]
}
{
  "extends": [
    "@unocss"
  ]
}

Rules

  • @unocss/order - Enforce a specific order for class selectors.
  • @unocss/order-attributify - Enforce a specific order for attributify selectors.

Prior Arts

Thanks to eslint-plugin-unocss by @devunt.

Released under the MIT License.