Skip to content

Instantly share code, notes, and snippets.

@8lane
Created October 13, 2016 10:39
Show Gist options
  • Select an option

  • Save 8lane/882a9493200dede4670d2627c5991daf to your computer and use it in GitHub Desktop.

Select an option

Save 8lane/882a9493200dede4670d2627c5991daf to your computer and use it in GitHub Desktop.
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2,
"max-empty-lines": 2,
"font-family-name-quotes": "always-unless-keyword",
"function-url-quotes": "never",
"selector-attribute-quotes": "always",
"string-quotes": "double",
"declaration-block-properties-order": [
"content",
"display",
"visibility",
"opacity",
"width",
"height",
{
properties: [
"position",
"top",
"right",
"bottom",
"left",
"z-index"
]
},
{
properties: [
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left"
]
},
{
properties: [
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left"
]
},
"background",
"background-image",
"background-color",
"background-position",
"background-size",
{
properties: [
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
]
},
{
order: "flexible",
properties: [
"color",
"font-size",
"font-weight",
"font-style",
]
},
{
order: "flexible",
properties: [
"text-align",
"text-decoration",
"text-transform",
"text-shadow"
]
},
"box-shadow",
"transform",
"animation",
"transition"
],
"at-rule-no-vendor-prefix": true,
"at-rule-empty-line-before": ["always", ignoreAtRules: ["include", "extend", "import"]],
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"max-nesting-depth": 3,
"selector-max-compound-selectors": 4,
"selector-max-specificity": "0,4,0",
"color-named": "always-where-possible",
"declaration-no-important": true,
"unit-whitelist": ["px", "%", "ms", "s", "deg", "rem", "em"],
"selector-no-attribute": true,
"selector-no-id": true,
"selector-no-qualifying-type": [true, ignore: ["class"]],
"selector-no-universal": true,
"selector-no-type": null,
selector-type-no-unknown: null,
selector-pseudo-element-colon-notation: 'single',
"comment-whitespace-inside": null,
"number-leading-zero": null,
"property-no-unknown": [ true, {
"ignoreProperties": [
"composes"
]
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment