Skip to content

Instantly share code, notes, and snippets.

@e-cloud
Created August 24, 2020 02:16
Show Gist options
  • Save e-cloud/12abc24aff1d285fe7e8dec65979ccf7 to your computer and use it in GitHub Desktop.
Save e-cloud/12abc24aff1d285fe7e8dec65979ccf7 to your computer and use it in GitHub Desktop.
stylelint extra config file for stylelint-order
{
"rules": {
"order/properties-order": [
[
{
"description": "typography group",
"emptyLineBefore": "never",
"properties": [
"font",
"font-family",
"font-size",
"font-weight",
"font-style",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
"font-emphasize",
"font-emphasize-position",
"font-emphasize-style",
"font-smooth",
"line-height"
]
},
{
"description": "positioning group",
"emptyLineBefore": "never",
"properties": ["position", "z-index", "top", "right", "bottom", "left"]
},
{
"description": "layout group",
"emptyLineBefore": "never",
"properties": [
"display",
"visibility",
"float",
"clear",
"overflow",
"overflow-x",
"overflow-y",
"clip",
"zoom",
"flex-flow",
"flex-direction",
"flex-wrap",
"justify-content",
"align-items",
"align-content",
"order",
"flex",
"flex-basis",
"flex-grow",
"flex-shrink",
"align-self"
]
},
{
"description": "sizing/dimensions group",
"emptyLineBefore": "never",
"properties": [
"box-sizing",
"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"
]
},
{
"description": "native style group",
"emptyLineBefore": "never",
"properties": [
"table-layout",
"empty-cells",
"caption-side",
"border-spacing",
"border-collapse",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image"
]
},
{
"description": "text-layout group",
"emptyLineBefore": "never",
"properties": [
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"cursor",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"text-align",
"text-align-last",
"vertical-align",
"white-space",
"text-decoration",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-style",
"text-emphasis-position",
"text-indent",
"text-justify",
"letter-spacing",
"word-spacing",
"writing-mode",
"text-outline",
"text-transform",
"text-wrap",
"text-overflow",
"text-overflow-ellipsis",
"text-overflow-mode",
"word-wrap",
"word-break",
"tab-size",
"hyphens",
"pointer-events"
]
},
{
"description": "animations group",
"emptyLineBefore": "never",
"properties": [
"transition",
"transition-delay",
"transition-timing-function",
"transition-duration",
"transition-property",
"transform",
"transform-origin",
"animation",
"animation-name",
"animation-duration",
"animation-play-state",
"animation-timing-function",
"animation-delay",
"animation-iteration-count",
"animation-direction"
]
},
{
"description": "decorations group",
"emptyLineBefore": "never",
"properties": [
"opacity",
"filter",
"interpolation-mode",
"color",
"border",
"border-width",
"border-style",
"border-color",
"border-top",
"border-top-width",
"border-top-style",
"border-top-color",
"border-right",
"border-right-width",
"border-right-style",
"border-right-color",
"border-bottom",
"border-bottom-width",
"border-bottom-style",
"border-bottom-color",
"border-left",
"border-left-width",
"border-left-style",
"border-left-color",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-image",
"border-image-source",
"border-image-slice",
"border-image-width",
"border-image-outset",
"border-image-repeat",
"outline",
"outline-width",
"outline-style",
"outline-color",
"outline-offset",
"background",
"background-color",
"background-image",
"background-repeat",
"background-attachment",
"background-position",
"background-position-x",
"background-position-y",
"background-clip",
"background-origin",
"background-size",
"box-decoration-break",
"box-shadow",
"text-shadow"
]
}
],
{
"unspecified": "bottomAlphabetical"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment