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

https://github.com/gravity-ui/stylelint-config


https://github.com/gravity-ui/stylelint-config

config stylelint

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# @gravity-ui/stylelint-config

Stylelint configuration for Gravity UI projects.

## Requirements

- Node.js >= 20.x
- Stylelint 16.18.0
- PostCSS 8.x

## Install

```
npm install --save-dev stylelint postcss @gravity-ui/stylelint-config
```

## Usage

Add `.stylelintrc` file in the project root with the following content:

```json
{
"extends": "@gravity-ui/stylelint-config"
}
```

### Prettier

If you are using Prettier, extend root config with the additional rules:

```json
{
"extends": ["@gravity-ui/stylelint-config", "@gravity-ui/stylelint-config/prettier"]
}
```

### Order

If you want to order properties in your css files, extend root config with the additional rules:

```json
{
"extends": ["@gravity-ui/stylelint-config", "@gravity-ui/stylelint-config/order"]
}
```