Skip to content

Instantly share code, notes, and snippets.

@ermish
Last active July 15, 2018 21:25
Show Gist options
  • Save ermish/a281817c7341f7ad0c0c6c709b00d46c to your computer and use it in GitHub Desktop.
Save ermish/a281817c7341f7ad0c0c6c709b00d46c to your computer and use it in GitHub Desktop.
A reusable stylelint config
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"rules": {
"at-rule-no-unknown": null,
"color-hex-length": "short",
"color-named": "never",
"comment-empty-line-before": null,
"indentation": 2,
"max-line-length": 100,
"max-nesting-depth": 4,
"no-descending-specificity": null,
"no-eol-whitespace": [
true,
{
"ignore": [
"empty-lines"
]
}
],
"order/order": [
{
"type": "at-rule",
"name": "include"
},
{
"type": "at-rule",
"name": "extend"
},
"custom-properties",
"dollar-variables",
"declarations",
"rules",
{
"type": "at-rule",
"name": "media"
}
],
"order/properties-alphabetical-order": true,
"shorthand-property-no-redundant-values": null,
"selector-list-comma-newline-after": "always-multi-line",
"string-quotes": "single",
"value-list-comma-newline-after": "always-multi-line"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment