Skip to content

Instantly share code, notes, and snippets.

@octoxan
Last active March 17, 2017 14:16
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 octoxan/360e42a8971dcaeb1eaf2f22457c5718 to your computer and use it in GitHub Desktop.
Save octoxan/360e42a8971dcaeb1eaf2f22457c5718 to your computer and use it in GitHub Desktop.
StyleLint config file
{
"rules": {
"declaration-colon-space-after": "always",
"indentation": ["tab"],
"max-empty-lines": 2,
"color-hex-case": "lower",
"color-hex-length": "short",
"number-leading-zero": "never",
"comment-empty-line-before": null,
"at-rule-empty-line-before": null,
"selector-pseudo-element-colon-notation": "single",
"no-eol-whitespace": true,
"selector-list-comma-newline-after": "always",
"at-rule-no-unknown": null,
"rule-nested-empty-line-before": null,
"declaration-colon-newline-after": null,
"declaration-block-no-ignored-properties": null,
"declaration-empty-line-before": null,
"rule-empty-line-before": null,
"declaration-block-no-duplicate-properties": [
true,
{
ignore: [
"consecutive-duplicates-with-different-values"
]
}
],
"declaration-block-properties-order":
[
{
properties: [
"position",
"top",
"right",
"bottom",
"left",
"z-index"
],
},
{
properties: [
"float",
"clear",
],
},
{
properties: [
"display",
"box-sizing",
"overflow",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height"
],
},
{
properties: [
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left"
],
},
{
properties: [
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left"
],
},
{
properties: [
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-width",
"border-style",
"border-color",
"outline"
],
},
{
order: "flexible",
properties: [
"font-size",
"font-weight",
"font-style",
"font-family",
"line-height"
],
},
{
order: "flexible",
properties: [
"text-align",
"text-transform",
"text-decoration",
"text-indent"
],
},
{
order: "flexible",
properties: [
"color",
"background",
"background-color",
"background-image",
"background-size"
],
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment