Skip to content

Instantly share code, notes, and snippets.

@alienlebarge
Last active March 3, 2016 19:26
Show Gist options
  • Save alienlebarge/3f3494148cb38e48286a to your computer and use it in GitHub Desktop.
Save alienlebarge/3f3494148cb38e48286a to your computer and use it in GitHub Desktop.
Stylelint rules setting - http://stylelint.io/
{
"rules": {
"at-rule-empty-line-before": [
"always", {
except: ["blockless-group", "first-nested"],
ignore: ["after-comment"]
}
],
"at-rule-no-vendor-prefix": true,
"block-closing-brace-newline-after": "always",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always-single-line",
"color-no-hex": true,
"color-no-named": true,
"comment-empty-line-before": "always",
"comment-whitespace-inside": "always",
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-single-line-max-declarations": 1,
"function-calc-no-unspaced-operator": true,
"function-comma-space-after": "always",
"function-linear-gradient-no-nonstandard-direction": true,
"function-url-quotes": "double",
"function-whitespace-after": "always",
"indentation": [
4,
ignore: ["value", "param"]
],
"max-line-length": 80,
"max-empty-lines": 5,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-no-vendor-prefix": true,
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-parentheses-space-inside": "never",
"media-query-list-comma-newline-after": "always",
"media-query-list-comma-newline-before": "never-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-eol-whitespace": true,
"no-missing-eof-newline": true,
"number-leading-zero": "never",
"number-no-trailing-zeros": true,
"number-zero-length-no-unit": true,
"property-no-vendor-prefix": true,
"rule-nested-empty-line-before": [
"always",
ignore: ["after-comment"]
],
"rule-no-duplicate-properties": true,
"rule-no-shorthand-property-overrides": true,
"rule-non-nested-empty-line-before": [
"always",
ignore: ["after-comment"]
],
"rule-properties-order": [
[
{
order: "strict",
emptyLineBefore: true,
properties: [
"position",
"top",
"right",
"bottom",
"left",
"z-index"
]
},
{
order: "strict",
emptyLineBefore: true,
properties: [
"display",
"float",
"clear",
"flex",
"flex-grow",
"flex-shrink",
"flex-basis",
"width",
"max-width",
"min-width",
"height",
"max-height",
"min-height"
]
},
{
order: "strict",
emptyLineBefore: true,
properties: [
"font-size",
"font-weight",
"font-style",
"font-family",
"font-variant",
"font-feature",
"font-stretch",
"font",
"line-height",
"color",
"text",
"letter-spacing"
]
},
{
order: "strict",
emptyLineBefore: true,
properties: [
"background",
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
]
}
],
{
unspecified: "bottom"
}
],
"rule-trailing-semicolon": "always",
"root-no-standard-properties": true,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-no-id": true,
"selector-pseudo-element-colon-notation": "double",
"selector-list-comma-newline-after": "always-multi-line",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "always-single-line",
"selector-list-comma-space-before": "never",
"string-quotes": "double",
"value-no-vendor-prefix": true,
"value-list-comma-space-after": "always-single-line"
}
}
@alienlebarge
Copy link
Author

These rules have moved here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment