0.1.0 • Published 9 years ago
stylelint-config-dnunez24 v0.1.0
David Nuñez's Stylelint Config
This is my personal configuration for stylelint based on stylelint-config-standard and extended with my own preferences.
Install
Install Stylelint and this configuration as development dependencies:
npm install stylelint stylelint-config-dnunez24 --save-devExtend
Create a .stylelintrc file in your project root and extend from stylelint-config-dnunez24. Override any of the default configuraiton settings as you please. Here's an example:
{
"extends": "stylelint-config-dnunez24",
"rules": {
"indentation": "tab",
"number-leading-zero": null,
"property-no-unknown": [ true, {
"ignoreProperties": [
"composes"
]
}],
"unit-whitelist": ["em", "rem", "s"]
}
}Lint
Make sure the stylelint executable is in your PATH and run it against your stylesheets to test compliance against the style preferences.
stylelint src/css/**/*.cssEditor Config
TODO
0.1.0
9 years ago