0.1.0 • Published 8 years ago
stylelint-config-case v0.1.0
stylelint-config-case
The case shareable config for stylelint.
Example
.selector-1::before {
background: linear-gradient(#fff, rgba(0, 0, 0, 0.8));
box-sizing: border-box;
display: block;
color: #333;
}
.selector-x {
width: 10%;
}
.selector-y {
width: 20%;
}
.selector-z {
width: 30%;
}
Note: the config is tested against this example, as such the example contains plenty of CSS syntax, formatting and features.
Installation
$ npm i stylelint-config-case
Usage
Set your stylelint config to:
{
"extends": "stylelint-config-case"
}
Extending the config
Simply add a "rules"
key to your config and add your overrides there.
For example, to change the indentation
to tabs and turn off the number-leading-zero
rule:
{
"extends": "stylelint-config-case",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}
MIT © Bogdan Chadkin
0.1.0
8 years ago