Skip to content

Instantly share code, notes, and snippets.

@angelikatyborska
Last active August 26, 2017 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelikatyborska/f983b1f61deda5da861abd4fba383df8 to your computer and use it in GitHub Desktop.
Save angelikatyborska/f983b1f61deda5da861abd4fba383df8 to your computer and use it in GitHub Desktop.
A sample stylelint configuration
{
"defaultSeverity": "warning",
"plugins": [
"stylelint-scss",
"stylelint-order"
],
"extends": "stylelint-config-sass-guidelines",
"rules": {
"scss/selector-no-redundant-nesting-selector": true,
"scss/dollar-variable-pattern": "^_?[a-z\\-0-9]+$",
"scss/at-extend-no-missing-placeholder": null,
"max-nesting-depth": 4,
"selector-max-compound-selectors": 5,
"selector-no-qualifying-type": [true, {"ignore": ["attribute", "class"]}],
"selector-max-id": 1,
"selector-class-pattern": "^[a-z\\-0-9]+$",
"order/order": [
"dollar-variables",
{
"type": "at-rule",
"name": "extend"
},
{
"type": "at-rule",
"name": "include"
},
"declarations",
"at-rules",
"rules"
],
"order/properties-alphabetical-order": null,
"order/properties-order": [
"display",
"position",
"top",
"right",
"bottom",
"left",
"flex",
"flex-basis",
"flex-direction",
"flex-flow",
"flex-grow",
"flex-shrink",
"flex-wrap",
"align-content",
"align-items",
"align-self",
"justify-content",
"order",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"float",
"clear",
"clip",
"columns",
"column-gap",
"column-fill",
"column-rule",
"column-span",
"column-count",
"column-width",
"transform",
"transform-box",
"transform-origin",
"transform-style",
"transition",
"transition-delay",
"transition-duration",
"transition-property",
"transition-timing-function",
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-style",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-left-radius",
"border-bottom-right-radius",
"border-color",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"outline",
"outline-color",
"outline-offset",
"outline-style",
"outline-width",
"background",
"background-attachment",
"background-clip",
"background-color",
"background-image",
"background-repeat",
"background-position",
"background-size",
"color",
"font",
"font-family",
"font-size",
"font-smoothing",
"font-style",
"font-variant",
"font-weight",
"letter-spacing",
"line-height",
"list-style",
"text-align",
"text-decoration",
"text-indent",
"text-overflow",
"text-rendering",
"text-shadow",
"text-transform",
"text-wrap",
"white-space",
"word-spacing",
"border-collapse",
"border-spacing",
"box-shadow",
"caption-side",
"content",
"cursor",
"empty-cells",
"opacity",
"overflow",
"quotes",
"speak",
"table-layout",
"vertical-align",
"visibility",
"z-index"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment