Last active
March 17, 2017 14:16
-
-
Save octoxan/360e42a8971dcaeb1eaf2f22457c5718 to your computer and use it in GitHub Desktop.
StyleLint config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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