https://github.com/gravity-ui/stylelint-config
https://github.com/gravity-ui/stylelint-config
config stylelint
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gravity-ui/stylelint-config
- Owner: gravity-ui
- License: mit
- Created: 2022-08-24T09:18:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-18T22:19:58.000Z (over 2 years ago)
- Last Synced: 2023-10-20T04:57:16.919Z (over 2 years ago)
- Topics: config, stylelint
- Language: JavaScript
- Homepage:
- Size: 189 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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"]
}
```