mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-12-23 18:10:23 -05:00
398 lines
16 KiB
Text
398 lines
16 KiB
Text
{
|
|
"extends": [
|
|
"stylelint-config-recommended-scss"
|
|
],
|
|
|
|
"plugins": [
|
|
"@stylistic/stylelint-plugin",
|
|
"stylelint-order"
|
|
],
|
|
|
|
"rules": {
|
|
"no-descending-specificity": null,
|
|
|
|
"block-no-empty": [ true, { "severity": "warning" } ],
|
|
|
|
"no-empty-source": null,
|
|
|
|
"font-family-no-missing-generic-family-keyword": null,
|
|
|
|
"at-rule-no-vendor-prefix": true,
|
|
|
|
"color-named": [ "never", { "severity": "warning" } ],
|
|
|
|
"function-url-no-scheme-relative": true,
|
|
|
|
"media-feature-name-no-vendor-prefix": true,
|
|
|
|
"selector-no-vendor-prefix": true,
|
|
|
|
"function-name-case": "lower",
|
|
"selector-type-case": "lower",
|
|
"value-keyword-case": "lower",
|
|
|
|
"comment-empty-line-before": [ "always", { "except": [ "first-nested" ], "ignore": [ "after-comment", "stylelint-commands" ], "severity": "warning" } ],
|
|
"custom-property-empty-line-before": [ "never", { "severity": "warning" } ],
|
|
"declaration-empty-line-before": [ "never", { "severity": "warning" } ],
|
|
"rule-empty-line-before": [ "always-multi-line", { "except": [ "first-nested" ], "severity": "warning" } ],
|
|
|
|
"declaration-block-single-line-max-declarations": [ 1, { "severity": "warning" } ],
|
|
|
|
"selector-pseudo-element-colon-notation": [ "single", { "severity": "warning" } ],
|
|
|
|
"color-hex-length": [ "short", { "severity": "warning" } ],
|
|
|
|
"keyframes-name-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected keyframes name to be kebab-case" } ],
|
|
"selector-class-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected selector class name to be kebab-case" } ],
|
|
"selector-id-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected selector id name to be kebab-case" } ],
|
|
|
|
"font-family-name-quotes": [ "always-unless-keyword", { "severity": "warning" } ],
|
|
"function-url-quotes": [ "always", { "severity": "warning" } ],
|
|
"selector-attribute-quotes": [ "always", { "severity": "warning" } ],
|
|
|
|
"declaration-block-no-redundant-longhand-properties": [ true, { "severity": "warning" } ],
|
|
"shorthand-property-no-redundant-values": null,
|
|
|
|
"comment-whitespace-inside": [ "always", { "severity": "warning" } ],
|
|
|
|
"scss/at-each-key-value-single-line": true,
|
|
|
|
"scss/at-else-closing-brace-newline-after": [ "always-last-in-chain", { "severity": "warning" } ],
|
|
"scss/at-else-closing-brace-space-after": [ "always-intermediate", { "severity": "warning" } ],
|
|
"scss/at-else-empty-line-before": [ "never", { "severity": "warning" } ],
|
|
"scss/at-else-if-parentheses-space-before": [ "always", { "severity": "warning" } ],
|
|
|
|
"scss/at-extend-no-missing-placeholder": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/at-function-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected function name to be kebab-case" } ],
|
|
|
|
"scss/at-import-partial-extension": null,
|
|
|
|
"scss/at-if-closing-brace-newline-after": [ "always-last-in-chain", { "severity": "warning" } ],
|
|
"scss/at-if-closing-brace-space-after": [ "always-intermediate", { "severity": "warning" } ],
|
|
"scss/at-if-no-null": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/at-mixin-argumentless-call-parentheses": [ "never", { "severity": "warning" } ],
|
|
"scss/at-mixin-parentheses-space-before": [ "never", { "severity": "warning" } ],
|
|
"scss/at-mixin-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected mixin name to be kebab-case" } ],
|
|
|
|
"scss/dollar-variable-colon-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"scss/dollar-variable-colon-space-before": [ "never", { "severity": "warning" } ],
|
|
"scss/dollar-variable-first-in-block": [ true, { "ignore": [ "comments", "imports" ], "severity": "warning" } ],
|
|
"scss/dollar-variable-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected $ variable name to be kebab-case" } ],
|
|
|
|
"scss/percent-placeholder-pattern": [ "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", { "severity": "warning", "message": "Expected % placeholder name to be kebab-case" } ],
|
|
|
|
"scss/block-no-redundant-nesting": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/comment-no-empty": null,
|
|
|
|
"scss/dimension-no-non-numeric-values": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/operator-no-newline-after": [ true, { "severity": "warning" } ],
|
|
"scss/operator-no-newline-before": [ true, { "severity": "warning" } ],
|
|
"scss/operator-no-unspaced": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/partial-no-import": true,
|
|
|
|
"scss/property-no-unknown": true,
|
|
|
|
"scss/selector-no-redundant-nesting-selector": [ true, { "severity": "warning" } ],
|
|
|
|
"scss/load-no-partial-leading-underscore": null,
|
|
|
|
"scss/no-duplicate-dollar-variables": true,
|
|
"scss/no-unused-private-members": [ true, { "severity": "warning" } ],
|
|
|
|
"@stylistic/color-hex-case": [ "lower", { "severity": "warning" } ],
|
|
|
|
"@stylistic/function-comma-newline-after": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/function-comma-newline-before": [ "never-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/function-comma-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/function-comma-space-before": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/function-max-empty-lines": [ 0, { "severity": "warning" } ],
|
|
"@stylistic/function-parentheses-newline-inside": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/function-parentheses-space-inside": [ "never-single-line", { "severity": "warning" } ],
|
|
"@stylistic/function-whitespace-after": [ "always", { "severity": "warning" } ],
|
|
|
|
"@stylistic/number-leading-zero": [ "always", { "severity": "warning" } ],
|
|
"@stylistic/number-no-trailing-zeros": [ true, { "severity": "warning" } ],
|
|
|
|
"@stylistic/string-quotes": [ "double", { "severity": "warning" } ],
|
|
|
|
"@stylistic/unit-case": [ "lower", { "severity": "warning" } ],
|
|
|
|
"@stylistic/value-list-comma-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/value-list-comma-space-before": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/value-list-max-empty-lines": [ 0, { "severity": "warning" } ],
|
|
|
|
"@stylistic/property-case": [ "lower", { "severity": "warning" } ],
|
|
|
|
"@stylistic/declaration-block-semicolon-newline-after": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/declaration-block-semicolon-newline-before": [ "never-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/declaration-block-semicolon-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/declaration-block-semicolon-space-before": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/declaration-block-trailing-semicolon": [ "always", { "severity": "warning" } ],
|
|
|
|
"@stylistic/block-closing-brace-newline-after": [ "always", { "ignoreAtRules": [ "if", "else" ], "severity": "warning" } ],
|
|
"@stylistic/block-closing-brace-empty-line-before": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/block-closing-brace-newline-before": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/block-closing-brace-space-before": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/block-opening-brace-newline-after": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/block-opening-brace-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/block-opening-brace-space-before": [ "always", { "severity": "warning" } ],
|
|
|
|
"@stylistic/selector-list-comma-newline-before": [ "never-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/selector-list-comma-space-after": [ "always-single-line", { "severity": "warning" } ],
|
|
"@stylistic/selector-list-comma-space-before": [ "never", { "severity": "warning" } ],
|
|
|
|
"@stylistic/at-rule-name-case": [ "lower", { "severity": "warning" } ],
|
|
"@stylistic/at-rule-name-newline-after": [ "always-multi-line", { "severity": "warning" } ],
|
|
"@stylistic/at-rule-name-space-after": [ "always", { "severity": "warning" } ],
|
|
"@stylistic/at-rule-semicolon-newline-after": [ "always", { "severity": "warning" } ],
|
|
"@stylistic/at-rule-semicolon-space-before": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/media-feature-colon-space-after": [ "always", { "severity": "warning" } ],
|
|
"@stylistic/media-feature-name-case": [ "lower", { "severity": "warning" } ],
|
|
"@stylistic/media-feature-parentheses-space-inside": [ "never", { "severity": "warning" } ],
|
|
"@stylistic/media-feature-range-operator-space-after": [ "always", { "severity": "warning" } ],
|
|
"@stylistic/media-feature-range-operator-space-before": [ "always", { "severity": "warning" } ],
|
|
|
|
"@stylistic/named-grid-areas-alignment": [ true, { "severity": "warning" } ],
|
|
|
|
"@stylistic/indentation": [ 4, { "ignore": [ "value" ], "severity": "warning" } ],
|
|
"@stylistic/linebreaks": "unix",
|
|
"@stylistic/max-empty-lines": [ 1, { "severity": "warning" } ],
|
|
"@stylistic/no-empty-first-line": [ true, { "severity": "warning" } ],
|
|
"@stylistic/no-eol-whitespace": [ true, { "severity": "warning" } ],
|
|
"@stylistic/no-extra-semicolons": [ true, { "severity": "warning" } ],
|
|
"@stylistic/no-missing-end-of-source-newline": [ true, { "severity": "warning" } ],
|
|
|
|
"order/order": [
|
|
"dollar-variables",
|
|
"declarations",
|
|
"custom-properties",
|
|
"rules"
|
|
],
|
|
|
|
"order/properties-order": [
|
|
"content",
|
|
"resize",
|
|
"empty-cells",
|
|
"float",
|
|
"clear",
|
|
"shape-image-threshold",
|
|
"shape-margin",
|
|
"shape-outside",
|
|
"overflow",
|
|
"overflow-x",
|
|
"overflow-y",
|
|
"z-index",
|
|
"position",
|
|
"top",
|
|
"right",
|
|
"bottom",
|
|
"left",
|
|
"transform",
|
|
"transform-origin",
|
|
"transform-style",
|
|
"perspective",
|
|
"perspective-origin",
|
|
"backface-visibility",
|
|
"margin",
|
|
"margin-top",
|
|
"margin-right",
|
|
"margin-bottom",
|
|
"margin-left",
|
|
"visibility",
|
|
"display",
|
|
"box-sizing",
|
|
"width",
|
|
"min-width",
|
|
"max-width",
|
|
"height",
|
|
"min-height",
|
|
"max-height",
|
|
"aspect-ratio",
|
|
"padding",
|
|
"padding-top",
|
|
"padding-right",
|
|
"padding-bottom",
|
|
"padding-left",
|
|
"grid-gap",
|
|
"grid-area",
|
|
"grid-row",
|
|
"grid-row-start",
|
|
"grid-row-end",
|
|
"grid-row-gap",
|
|
"grid-column",
|
|
"grid-column-start",
|
|
"grid-column-end",
|
|
"grid-column-gap",
|
|
"grid-auto-rows",
|
|
"grid-auto-flow",
|
|
"grid-template",
|
|
"grid-template-areas",
|
|
"grid-template-rows",
|
|
"grid-template-columns",
|
|
"gap",
|
|
"flex",
|
|
"flex-basis",
|
|
"flex-direction",
|
|
"flex-flow",
|
|
"flex-grow",
|
|
"flex-shrink",
|
|
"flex-wrap",
|
|
"order",
|
|
"justify-content",
|
|
"align-content",
|
|
"justify-self",
|
|
"align-items",
|
|
"align-self",
|
|
"columns",
|
|
"column-width",
|
|
"column-count",
|
|
"column-gap",
|
|
"column-rule",
|
|
"column-rule-color",
|
|
"column-rule-style",
|
|
"column-rule-width",
|
|
"column-fill",
|
|
"column-span",
|
|
"caption-side",
|
|
"table-layout",
|
|
"vertical-align",
|
|
"outline",
|
|
"outline-width",
|
|
"outline-color",
|
|
"outline-style",
|
|
"outline-offset",
|
|
"border",
|
|
"border-top",
|
|
"border-right",
|
|
"border-bottom",
|
|
"border-left",
|
|
"border-width",
|
|
"border-top-width",
|
|
"border-right-width",
|
|
"border-bottom-width",
|
|
"border-left-width",
|
|
"border-color",
|
|
"border-top-color",
|
|
"border-right-color",
|
|
"border-bottom-color",
|
|
"border-left-color",
|
|
"border-style",
|
|
"border-top-style",
|
|
"border-right-style",
|
|
"border-bottom-style",
|
|
"border-left-style",
|
|
"border-radius",
|
|
"border-top-right-radius",
|
|
"border-top-left-radius",
|
|
"border-bottom-right-radius",
|
|
"border-bottom-left-radius",
|
|
"border-image",
|
|
"border-image-source",
|
|
"border-image-width",
|
|
"border-image-outset",
|
|
"border-image-repeat",
|
|
"border-image-slice",
|
|
"border-collapse",
|
|
"border-spacing",
|
|
"box-shadow",
|
|
"clip",
|
|
"clip-path",
|
|
"mask",
|
|
"mask-image",
|
|
"mask-position",
|
|
"mask-size",
|
|
"mask-repeat",
|
|
"mask-mode",
|
|
"mask-type",
|
|
"mask-clip",
|
|
"object-position",
|
|
"appearance",
|
|
"background",
|
|
"background-color",
|
|
"background-image",
|
|
"background-position",
|
|
"background-position-x",
|
|
"background-position-y",
|
|
"background-origin",
|
|
"background-size",
|
|
"background-clip",
|
|
"background-repeat",
|
|
"background-attachment",
|
|
"background-blend-mode",
|
|
"color",
|
|
"text-fill-color",
|
|
"text-stroke",
|
|
"text-stroke-width",
|
|
"text-stroke-color",
|
|
"font",
|
|
"font-family",
|
|
"font-size",
|
|
"font-size-adjust",
|
|
"font-stretch",
|
|
"font-variant",
|
|
"font-weight",
|
|
"font-style",
|
|
"font-smoothing",
|
|
"quotes",
|
|
"tab-size",
|
|
"letter-spacing",
|
|
"line-height",
|
|
"word-break",
|
|
"word-spacing",
|
|
"word-wrap",
|
|
"white-space",
|
|
"direction",
|
|
"unicode-bidi",
|
|
"break-after",
|
|
"page-break-after",
|
|
"break-before",
|
|
"page-break-before",
|
|
"break-inside",
|
|
"page-break-inside",
|
|
"text-align",
|
|
"text-align-last",
|
|
"text-justify",
|
|
"text-indent",
|
|
"text-overflow",
|
|
"text-transform",
|
|
"text-decoration",
|
|
"text-decoration-color",
|
|
"text-decoration-style",
|
|
"text-decoration-line",
|
|
"text-shadow",
|
|
"text-emphasis",
|
|
"text-emphasis-color",
|
|
"filter",
|
|
"opacity",
|
|
"transition",
|
|
"transition-delay",
|
|
"transition-duration",
|
|
"transition-property",
|
|
"transition-timing-function",
|
|
"animation",
|
|
"animation-delay",
|
|
"animation-direction",
|
|
"animation-duration",
|
|
"animation-fill-mode",
|
|
"animation-iteration-count",
|
|
"animation-name",
|
|
"animation-play-state",
|
|
"animation-timing-function",
|
|
"list-style",
|
|
"list-style-type",
|
|
"list-style-position",
|
|
"list-style-image",
|
|
"counter-increment",
|
|
"counter-reset",
|
|
"scroll-snap-type",
|
|
"scroll-snap-coordinate",
|
|
"scroll-snap-destination",
|
|
"cursor"
|
|
]
|
|
}
|
|
}
|