Last active
June 27, 2024 14:39
-
-
Save sigwyg/84dce7a397d58c59be9d61903b7e0231 to your computer and use it in GitHub Desktop.
stylelintの設定ファイル
This file contains hidden or 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
| { | |
| "plugins": [ | |
| "stylelint-scss" | |
| ], | |
| "rules": { | |
| "scss/dollar-variable-no-missing-interpolation": true, | |
| "at-rule-name-case": "lower", | |
| "at-rule-name-space-after": "always", | |
| "at-rule-semicolon-newline-after": "always", | |
| "at-rule-empty-line-before": [ | |
| "always", | |
| { | |
| "except": [ | |
| "blockless-group", | |
| "first-nested" | |
| ], | |
| "ignore": [ | |
| "after-comment" | |
| ] | |
| } | |
| ], | |
| "block-closing-brace-empty-line-before": "never", | |
| "block-closing-brace-newline-after": "always", | |
| "block-closing-brace-newline-before": "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" | |
| , | |
| "color-hex-case": "lower", | |
| "color-hex-length": "long", | |
| "color-named": "never", | |
| "color-no-invalid-hex": true | |
| , | |
| "comment-empty-line-before": [ | |
| "always", | |
| { | |
| "except": [ "first-nested" ], | |
| "ignore": [ "stylelint-commands" ] | |
| } | |
| ], | |
| "comment-no-empty": true, | |
| "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-empty-line-before": "never", | |
| "declaration-no-important": true, | |
| "declaration-block-no-duplicate-properties": [ | |
| true, | |
| { | |
| "ignore": [ "consecutive-duplicates" ] | |
| } | |
| ], | |
| "declaration-block-no-shorthand-property-overrides": true, | |
| "declaration-block-no-ignored-properties": true, | |
| "declaration-block-semicolon-newline-after": "always-multi-line", | |
| "declaration-block-semicolon-space-after": "always-single-line", | |
| "declaration-block-trailing-semicolon": "always", | |
| "declaration-property-value-blacklist": { | |
| "/^transition/" : [ "/all/" ], | |
| "/^background/" : [ "/http:/" ], | |
| "/^border/" : [ "none" ], | |
| "/.+/" : [ "initial" ] | |
| }, | |
| "declaration-block-properties-order": [ | |
| "content", | |
| "visibility", | |
| "zoom", | |
| "position", | |
| "top", | |
| "right", | |
| "bottom", | |
| "left", | |
| "z-index", | |
| "flex-direction", | |
| "flex-order", | |
| "flex-pack", | |
| "flex-align", | |
| "display", | |
| "clear", | |
| "float", | |
| "width", | |
| "min-width", | |
| "max-width", | |
| "height", | |
| "min-height", | |
| "max-height", | |
| "box-sizing", | |
| "padding", | |
| "padding-top", | |
| "padding-right", | |
| "padding-bottom", | |
| "padding-left", | |
| "margin", | |
| "margin-top", | |
| "margin-right", | |
| "margin-bottom", | |
| "margin-left", | |
| "overflow", | |
| "overflow-x", | |
| "overflow-y", | |
| "border", | |
| "border-color", | |
| "border-style", | |
| "border-width", | |
| "border-top", | |
| "border-top-color", | |
| "border-top-style", | |
| "border-top-width", | |
| "border-right", | |
| "border-right-color", | |
| "border-right-style", | |
| "border-right-width", | |
| "border-bottom", | |
| "border-bottom-color", | |
| "border-bottom-style", | |
| "border-bottom-width", | |
| "border-left", | |
| "border-left-color", | |
| "border-left-style", | |
| "border-left-width", | |
| "border-radius", | |
| "border-top-left-radius", | |
| "border-top-right-radius", | |
| "border-bottom-right-radius", | |
| "border-bottom-left-radius", | |
| "border-image", | |
| "border-image-source", | |
| "border-image-slice", | |
| "border-image-width", | |
| "border-image-outset", | |
| "border-image-repeat", | |
| "border-spacing", | |
| "border-collapse", | |
| "outline", | |
| "outline-width", | |
| "outline-style", | |
| "outline-color", | |
| "outline-offset", | |
| "box-shadow", | |
| "table-layout", | |
| "empty-cells", | |
| "caption-side", | |
| "clip", | |
| "font", | |
| "font-family", | |
| "font-size", | |
| "font-style", | |
| "font-weight", | |
| "font-variant", | |
| "font-size-adjust", | |
| "font-stretch", | |
| "font-effect", | |
| "font-emphasize", | |
| "font-emphasize-position", | |
| "font-emphasize-style", | |
| "font-smooth", | |
| "hyphens", | |
| "line-height", | |
| "color", | |
| "background", | |
| "background-color", | |
| "background-image", | |
| "filter", | |
| "background-repeat", | |
| "background-attachment", | |
| "background-position", | |
| "background-position-x", | |
| "background-position-y", | |
| "background-clip", | |
| "background-origin", | |
| "background-size", | |
| "text-align", | |
| "text-align-last", | |
| "text-emphasis", | |
| "text-emphasis-color", | |
| "text-emphasis-style", | |
| "text-emphasis-position", | |
| "text-decoration", | |
| "text-indent", | |
| "text-justify", | |
| "text-outline", | |
| "text-overflow", | |
| "text-overflow-ellipsis", | |
| "text-overflow-mode", | |
| "text-shadow", | |
| "text-transform", | |
| "text-wrap", | |
| "letter-spacing", | |
| "word-break", | |
| "word-spacing", | |
| "word-wrap", | |
| "tab-size", | |
| "white-space", | |
| "vertical-align", | |
| "list-style", | |
| "list-style-position", | |
| "list-style-type", | |
| "list-style-image", | |
| "pointer-events", | |
| "fill", | |
| "fill-opacity", | |
| "stroke", | |
| "stroke-opacity", | |
| "stroke-width", | |
| "shape-rendering", | |
| "cursor", | |
| "quotes", | |
| "counter-reset", | |
| "counter-increment", | |
| "resize", | |
| "user-select", | |
| "nav-index", | |
| "nav-up", | |
| "nav-right", | |
| "nav-down", | |
| "nav-left", | |
| "opacity", | |
| "transition", | |
| "transition-delay", | |
| "transition-timing-function", | |
| "transition-duration", | |
| "transition-property", | |
| "transform", | |
| "transform-origin", | |
| "animation", | |
| "animation-name", | |
| "animation-duration", | |
| "animation-fill-mode", | |
| "animation-play-state", | |
| "animation-timing-function", | |
| "animation-delay", | |
| "animation-iteration-count", | |
| "animation-direction" | |
| ], | |
| "font-family-name-quotes": "always-unless-keyword", | |
| "font-family-no-duplicate-names": true | |
| , | |
| "function-calc-no-unspaced-operator": true, | |
| "function-comma-newline-after": "always-multi-line", | |
| "function-comma-space-after": "always-single-line", | |
| "function-linear-gradient-no-nonstandard-direction": true, | |
| "function-max-empty-lines": 0, | |
| "function-name-case": "lower", | |
| "function-parentheses-space-inside": "always-single-line", | |
| "function-url-quotes": "always", | |
| "function-whitespace-after": "always" | |
| , | |
| "indentation": 4, | |
| "length-zero-no-unit": true, | |
| "max-nesting-depth": 3 | |
| , | |
| "media-feature-colon-space-after": "always", | |
| "media-feature-colon-space-before": "never", | |
| "media-feature-name-case": "lower", | |
| "media-feature-name-no-unknown": true, | |
| "media-feature-name-no-vendor-prefix": true, | |
| "media-feature-no-missing-punctuation": true, | |
| "media-feature-parentheses-space-inside": "never", | |
| "media-feature-range-operator-space-after": "always", | |
| "media-feature-range-operator-space-before": "always", | |
| "media-query-list-comma-newline-after": "always-multi-line", | |
| "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-descending-specificity": true, | |
| "no-duplicate-selectors": true, | |
| "no-empty-source": true, | |
| "no-eol-whitespace": true, | |
| "no-extra-semicolons": true, | |
| "no-invalid-double-slash-comments": true, | |
| "no-unknown-animations": true | |
| , | |
| "number-leading-zero": "always", | |
| "number-no-trailing-zeros": true, | |
| "length-zero-no-unit": true | |
| , | |
| "property-case": "lower", | |
| "property-no-unknown": true, | |
| "property-no-vendor-prefix": true, | |
| "root-no-standard-properties": true, | |
| "rule-nested-empty-line-before": [ | |
| "always-multi-line", | |
| { | |
| "except": [ "after-rule", "first-nested" ], | |
| "ignore": [ "after-comment" ] | |
| } | |
| ], | |
| "rule-non-nested-empty-line-before": "always" | |
| , | |
| "selector-attribute-brackets-space-inside": "never", | |
| "selector-attribute-operator-space-after": "never", | |
| "selector-attribute-operator-space-before": "never", | |
| "selector-attribute-quotes": "always", | |
| "selector-class-pattern": [ | |
| "^(?!(js\\-))[a-z\\-0-9]+$", | |
| { | |
| "message": "Selector should be written in lowercase with hyphens (selector-class-pattern)" | |
| } | |
| ], | |
| "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-compound-selectors": 4, | |
| "selector-no-empty": true, | |
| "selector-no-id": true, | |
| "selector-no-qualifying-type": true, | |
| "selector-no-universal": true, | |
| "selector-no-vendor-prefix": true, | |
| "selector-pseudo-class-case": "lower", | |
| "selector-pseudo-class-no-unknown": true, | |
| "selector-pseudo-class-parentheses-space-inside": "always", | |
| "selector-pseudo-element-case": "lower", | |
| "selector-pseudo-element-colon-notation": "double", | |
| "selector-pseudo-element-no-unknown": true, | |
| "selector-root-no-composition": true, | |
| "selector-type-case": "lower", | |
| "selector-type-no-unknown": true | |
| , | |
| "string-no-newline": true, | |
| "string-quotes": "double", | |
| "stylelint-disable-reason": "always-after", | |
| "unit-blacklist": ["pt", "ex", "pc"], | |
| "unit-case": "lower", | |
| "unit-no-unknown": true | |
| , | |
| "value-keyword-case": "lower", | |
| "value-list-comma-newline-after": "always-multi-line", | |
| "value-list-comma-space-after": "always-single-line", | |
| "value-list-max-empty-lines": 0, | |
| "value-no-vendor-prefix": true | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考: https://github.com/primer/stylelint-config-primer/blob/1ac303e9a633ee38d168a014dcea10eaf5a95aab/index.js#L45-L215