Skip to content

Instantly share code, notes, and snippets.

@0snilcy
Created July 18, 2019 08:53
Show Gist options
  • Save 0snilcy/4eeca86cadc092cdb6bd4c0a4c25a6d2 to your computer and use it in GitHub Desktop.
Save 0snilcy/4eeca86cadc092cdb6bd4c0a4c25a6d2 to your computer and use it in GitHub Desktop.
.stylelintrc
{
"extends": "stylelint-config-htmlacademy",
"plugins": [
"stylelint-order"
],
"rules": {
"declaration-no-important": true,
"indentation": [2, {"ignore": ["inside-parens"]}],
"max-empty-lines": 1,
"at-rule-empty-line-before": ["always", {
"except": ["first-nested"],
"ignore": ["blockless-after-same-name-blockless"]
}],
"declaration-empty-line-before": ["always", {
"ignore": ["after-declaration", "first-nested"]
}],
"order/order": [
"custom-properties",
{
"type": "at-rule"
},
"declarations",
"rules",
{
"type": "rule",
"selector": /^&:\w/
},
{
"type": "rule",
"selector": /^&/
}
],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment