@gravity-ui/stylelint-config
v4.0.1
Published
Gravity UI Stylelint config, following our styleguide
Downloads
18,195
Readme
@gravity-ui/stylelint-config
Install
npm install --save-dev stylelint postcss @gravity-ui/stylelint-config
Usage
Add .stylelintrc
file in the project root with the following content:
{
"extends": "@gravity-ui/stylelint-config"
}
Prettier
If you are using Prettier, extend root config with the additional rules:
{
"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:
{
"extends": ["@gravity-ui/stylelint-config", "@gravity-ui/stylelint-config/order"]
}