Skip to content

Instantly share code, notes, and snippets.

@LadyCarni LadyCarni/.stylelintrc
Last active Oct 24, 2018

Embed
What would you like to do?
Style Linter
{
"rules": {
"at-rule-empty-line-before": "always",
"at-rule-name-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"at-rule-name-space-after": "always",
"at-rule-no-unknown": true,
"at-rule-no-vendor-prefix": [ true, {
"message": "Looks like you are trying to prefix. Consider an auto prefixer.",
"severity": "warning"
} ],
"at-rule-semicolon-newline-after": "always",
"at-rule-semicolon-space-before": "never",
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-after": "always-single-line",
"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",
"color-hex-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"color-hex-length": "short",
"color-named": "never",
"color-no-hex": true,
"color-no-invalid-hex": true,
"comment-empty-line-before": "never",
"comment-no-empty": true,
"comment-whitespace-inside": "always",
"comment-word-blacklist": ["/^TODO:/", {
"message": "Reserve TODO items for tickets"
} ],
"custom-property-empty-line-before": "never",
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"declaration-empty-line-before": "never",
"declaration-no-important": true,
"font-family-name-quotes": "always-unless-keyword",
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": true,
"font-weight-notation": "numeric",
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-newline-before": "never-multi-line",
"function-comma-space-after": "always",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"function-parentheses-newline-inside": "never-multi-line",
"function-parentheses-space-inside": "always",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"function-whitespace-after": "always",
"indentation": [ 4, {
"message": "Please use 4 spaces for indentation. Tabs are for chumps."
} ],
"keyframe-declaration-no-important": true,
"length-zero-no-unit": true,
"linebreaks": "unix",
"max-empty-lines": 1,
"max-line-length": 120,
"max-nesting-depth": 4,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"media-feature-name-no-unknown": true,
"media-feature-name-no-vendor-prefix": [ true, {
"message": "Looks like you are trying to prefix. Consider an auto prefixer.",
"severity": "warning"
} ],
"media-feature-parentheses-space-inside": "always",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "never-multi-line",
"media-query-list-comma-newline-before": "never-multi-line",
"media-query-list-comma-space-after": "always",
"media-query-list-comma-space-before": "never",
"no-descending-specificity": true,
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"no-unknown-animations": true,
"number-leading-zero": "never",
"number-max-precision": 2,
"number-no-trailing-zeros": true,
"property-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"property-no-unknown": true,
"property-no-vendor-prefix": [ true, {
"message": "Looks like you are trying to prefix. Consider an auto prefixer.",
"severity": "warning"
} ],
"rule-empty-line-before": "always",
"selector-attribute-brackets-space-inside": "always",
"selector-attribute-operator-space-after": "always",
"selector-attribute-operator-space-before": "always",
"selector-attribute-quotes": "always",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"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",
"selector-max-empty-lines": 0,
"selector-max-id": 1,
"selector-max-pseudo-class": 4,
"selector-max-type": 2,
"selector-max-universal": 1,
"selector-no-qualifying-type": true,
"selector-no-vendor-prefix": [ true, {
"message": "Looks like you are trying to prefix. Consider an auto prefixer.",
"severity": "warning"
} ],
"selector-pseudo-class-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "always",
"selector-pseudo-element-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"string-quotes": "single",
"time-min-milliseconds": 100,
"unit-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"unit-no-unknown": true,
"value-keyword-case": [ "lower", {
"message": "Lowercase letters are easier to distinguish from numbers"
} ],
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-newline-before": "never-multi-line",
"value-list-comma-space-after": "always",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0,
"value-no-vendor-prefix": [ true, {
"message": "Looks like you are trying to prefix. Consider an auto prefixer.",
"severity": "warning"
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.