Skip to content

Instantly share code, notes, and snippets.

@onlurking
Created May 24, 2019 01:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onlurking/4824d73843bead2eef4137d835d25321 to your computer and use it in GitHub Desktop.
Save onlurking/4824d73843bead2eef4137d835d25321 to your computer and use it in GitHub Desktop.
{
"extends": "stylelint-config-recommended",
"plugins": [
"stylelint-order"
],
"rules": {
"at-rule-no-unknown": true,
"at-rule-no-vendor-prefix": true,
"block-opening-brace-space-before": "always-multi-line",
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"declaration-block-no-duplicate-properties": true,
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-trailing-semicolon": "always",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"declaration-empty-line-before": ["never", {
"ignore": ["after-declaration"]
}],
"declaration-no-important": true,
"font-family-name-quotes": "always-unless-keyword",
"font-weight-notation": "numeric",
"function-calc-no-unspaced-operator": true,
"function-max-empty-lines": 1,
"function-url-quotes": "always",
"indentation": 2,
"length-zero-no-unit": true,
"max-empty-lines": 2,
"max-nesting-depth": 3,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-blacklist": "max-width",
"media-feature-name-no-vendor-prefix": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"no-duplicate-selectors": true,
"no-descending-specificity": null,
"no-unknown-animations": true,
"number-max-precision": 8,
"number-no-trailing-zeros": true,
"property-no-unknown": true,
"property-no-vendor-prefix": true,
"rule-empty-line-before": ["always-multi-line", { "except": ["first-nested"], "ignore": ["after-comment"] }],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-quotes": "always",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-max-compound-selectors": 3,
"selector-class-pattern":"^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-z]+(?:-[a-z]+)*(?:__[a-z]+(?:-[a-z]+)*)?(?:--[a-z]+(?:-[a-z]+)*)?(?:\\[.+\\])?$",
"selector-combinator-space-after": "always",
"selector-max-id": 0,
"selector-max-universal": 0,
"selector-max-pseudo-class": 1,
"selector-max-specificity": "0,2,1",
"selector-max-type": [0, {"ignore": "child"}],
"selector-no-vendor-prefix": true,
"selector-pseudo-class-no-unknown": [true, {
"ignorePseudoClasses": ["global"]
}],
"selector-no-qualifying-type": true,
"string-quotes": "double",
"time-min-milliseconds": 100,
"unit-blacklist": ["pt"],
"declaration-property-value-blacklist": {
"position": ["fixed"],
"border": ["none"]
},
"value-keyword-case": "lower",
"value-list-comma-newline-before": "never-multi-line",
"value-no-vendor-prefix": true,
"order/order": [
[
"custom-properties",
"declarations",
"at-variables",
"dollar-variables",
"less-mixins",
{
"type": "at-rule",
"name": "include"
},
"rules"
]
],
"order/properties-alphabetical-order": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment