scultura-stylelint-config
Stylelint configuration used by Scultura CSS framework.
What is Stylelint
Stylelint is a mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Installation
npm install @scultura/stylelint-config --save-dev
Usage
{
"extends": "@scultura/stylelint-config/css"
}
Your can override or add your own rules in your Stylelint configuration file.
{
"extends": "@scultura/stylelint-config/css",
"rules": {
// your own rules here
}
}
Rules
We extend rules from stylelint-config-standard
.
That means all rules for Possible errors are activated and enforce a minimal set of stylistic conventions seen within a handful of CSS styleguides.
For our own's rules, we include:
- banning vendor prefix (Added at compile time by
Autoprefixer
) - limitation for selector number to keep performance and reusability
- banning
!important
property - all letters in lowercase
- numeric value for font weight
Your can see all our rules here.
And read about all Stylelint rules.
License
This project is licensed under the MIT License - see the LICENSE file for details