0.0.5 • Published 2 years ago
@kuohuanhuan/stylelint-config v0.0.5
@kuohuanhuan/stylelint-config
My configurations for Stylelint, supports CSS and SCSS.
This will automatically sort the CSS rules - with zero setup.
Installation
Install via NPM:
npm i stylelint @kuohuanhuan/stylelint-config -D
Usage
Add chosen config to the extends
section of your Stylelint config file (e.g. .stylelintrc
):
- Both CSS and SCSS (recommended)
{
"extends": ["@kuohuanhuan/stylelint-config"]
}
- CSS only
{
"extends": ["@kuohuanhuan/stylelint-config/css"]
}
- SCSS only
{
"extends": ["@kuohuanhuan/stylelint-config/scss"]
}
It's recommended to run Stylelint with --max-warnings
flag, because many rules has warning
severity:
stylelint '**/*.(css|scss)' --max-warnings 0
License
Copyright (c) 2023 kuohuanhuan, licensed under MIT.