From d1067d7c35877588e27d3a559802f8606ba36120 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 5 Jan 2019 20:59:44 +0200 Subject: [PATCH] Switch to our Stylelint config. (#27974) --- .stylelintrc | 327 +--------------------------- package-lock.json | 11 + package.json | 5 +- site/docs/4.2/examples/.stylelintrc | 4 +- 4 files changed, 17 insertions(+), 330 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index fce97867fc..e5f1a88fb6 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,328 +1,5 @@ { "extends": [ - "stylelint-config-standard", - "stylelint-config-recommended-scss" - ], - "plugins": [ - "stylelint-order" - ], - "rules": { - "at-rule-empty-line-before": null, - "at-rule-name-space-after": "always", - "at-rule-no-unknown": null, - "at-rule-no-vendor-prefix": true, - "at-rule-semicolon-space-before": "never", - "block-closing-brace-empty-line-before": null, - "block-closing-brace-newline-after": null, - "block-opening-brace-space-before": null, - "color-named": "never", - "declaration-block-semicolon-newline-after": "always-multi-line", - "declaration-block-semicolon-newline-before": "never-multi-line", - "declaration-block-semicolon-space-after": "always-single-line", - "declaration-empty-line-before": null, - "declaration-no-important": true, - "font-family-name-quotes": "always-where-recommended", - "font-weight-notation": [ - "numeric", - { - "ignore": [ - "relative" - ] - } - ], - "function-url-no-scheme-relative": true, - "function-url-quotes": "always", - "length-zero-no-unit": true, - "max-empty-lines": 2, - "max-line-length": null, - "media-feature-name-no-unknown": [ - true, - { - "ignoreMediaFeatureNames": [ - "prefers-reduced-motion" - ] - } - ], - "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": "never", - "no-descending-specificity": null, - "no-duplicate-selectors": true, - "number-leading-zero": "never", - "order/properties-order": [ - "position", - "top", - "right", - "bottom", - "left", - "z-index", - "box-sizing", - "display", - "flex", - "flex-align", - "flex-basis", - "flex-direction", - "flex-wrap", - "flex-flow", - "flex-shrink", - "flex-grow", - "flex-order", - "flex-pack", - "align-content", - "align-items", - "align-self", - "justify-content", - "order", - "float", - "width", - "min-width", - "max-width", - "height", - "min-height", - "max-height", - "padding", - "padding-top", - "padding-right", - "padding-bottom", - "padding-left", - "margin", - "margin-top", - "margin-right", - "margin-bottom", - "margin-left", - "overflow", - "overflow-x", - "overflow-y", - "-webkit-overflow-scrolling", - "-ms-overflow-x", - "-ms-overflow-y", - "-ms-overflow-style", - "columns", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-width", - "column-rule-style", - "column-rule-color", - "column-span", - "column-width", - "orphans", - "widows", - "clip", - "clear", - "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", - "src", - "hyphens", - "line-height", - "color", - "text-align", - "text-align-last", - "text-emphasis", - "text-emphasis-color", - "text-emphasis-style", - "text-emphasis-position", - "text-decoration", - "text-indent", - "text-justify", - "text-outline", - "-ms-text-overflow", - "text-overflow", - "text-overflow-ellipsis", - "text-overflow-mode", - "text-shadow", - "text-transform", - "text-wrap", - "-webkit-text-size-adjust", - "-ms-text-size-adjust", - "letter-spacing", - "-ms-word-break", - "word-break", - "word-spacing", - "-ms-word-wrap", - "word-wrap", - "overflow-wrap", - "tab-size", - "white-space", - "vertical-align", - "direction", - "unicode-bidi", - "list-style", - "list-style-position", - "list-style-type", - "list-style-image", - "pointer-events", - "-ms-touch-action", - "touch-action", - "cursor", - "visibility", - "zoom", - "table-layout", - "empty-cells", - "caption-side", - "border-spacing", - "border-collapse", - "content", - "quotes", - "counter-reset", - "counter-increment", - "resize", - "user-select", - "nav-index", - "nav-up", - "nav-right", - "nav-down", - "nav-left", - "background", - "background-color", - "background-image", - "filter", - "background-repeat", - "background-attachment", - "background-position", - "background-position-x", - "background-position-y", - "background-clip", - "background-origin", - "background-size", - "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", - "outline", - "outline-width", - "outline-style", - "outline-color", - "outline-offset", - "box-shadow", - "opacity", - "-ms-interpolation-mode", - "page-break-after", - "page-break-before", - "page-break-inside", - "transition", - "transition-delay", - "transition-timing-function", - "transition-duration", - "transition-property", - "transform", - "transform-origin", - "perspective", - "appearance", - "animation", - "animation-name", - "animation-duration", - "animation-play-state", - "animation-timing-function", - "animation-delay", - "animation-iteration-count", - "animation-direction", - "animation-fill-mode", - "fill", - "stroke" - ], - "property-blacklist": [ - "border-radius", - "border-top-left-radius", - "border-top-right-radius", - "border-bottom-right-radius", - "border-bottom-left-radius", - "transition" - ], - "property-no-vendor-prefix": true, - "rule-empty-line-before": null, - "scss/at-function-named-arguments": "never", - "scss/at-function-parentheses-space-before": "never", - "scss/at-import-no-partial-leading-underscore": true, - "scss/at-mixin-argumentless-call-parentheses": null, - "scss/at-mixin-named-arguments": null, - "scss/at-mixin-parentheses-space-before": "never", - "scss/at-rule-no-unknown": true, - "scss/dollar-variable-colon-space-after": "at-least-one-space", - "scss/dollar-variable-colon-space-before": "never", - "scss/dollar-variable-default": [ - true, - { - "ignore": "local" - } - ], - "scss/dollar-variable-no-missing-interpolation": true, - "scss/media-feature-value-dollar-variable": null, - "scss/no-duplicate-dollar-variables": [ - null, - { - "ignoreInsideAtRules": [ - "if", - "mixin" - ] - } - ], - "scss/operator-no-newline-after": true, - "scss/operator-no-newline-before": true, - "scss/operator-no-unspaced": true, - "selector-attribute-quotes": "always", - "selector-class-pattern": "^[a-z][a-z0-9\\-]*[a-z0-9]$", - "selector-list-comma-newline-after": "always", - "selector-list-comma-newline-before": "never-multi-line", - "selector-list-comma-space-after": "always-single-line", - "selector-list-comma-space-before": "never-single-line", - "selector-max-attribute": 2, - "selector-max-class": 4, - "selector-max-combinators": 4, - "selector-max-compound-selectors": 4, - "selector-max-empty-lines": 1, - "selector-max-id": 0, - "selector-max-specificity": null, - "selector-max-type": 2, - "selector-max-universal": 1, - "selector-no-qualifying-type": true, - "selector-no-vendor-prefix": true, - "shorthand-property-no-redundant-values": true, - "string-quotes": "double", - "value-keyword-case": "lower", - "value-list-comma-newline-after": "never-multi-line", - "value-list-comma-newline-before": "never-multi-line", - "value-list-comma-space-after": "always", - "value-no-vendor-prefix": true - } + "stylelint-config-bootstrap/scss" + ] } diff --git a/package-lock.json b/package-lock.json index 7243a72458..d1de5ffc53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9759,6 +9759,17 @@ } } }, + "stylelint-config-bootstrap": { + "version": "github:twbs/stylelint-config-bootstrap#044b3c3680bce00b375f72318692b25632e87be8", + "from": "github:twbs/stylelint-config-bootstrap#v0.1.0", + "dev": true, + "requires": { + "stylelint-config-recommended-scss": "^3.2.0", + "stylelint-config-standard": "^18.2.0", + "stylelint-order": "^2.0.0", + "stylelint-scss": "^3.4.4" + } + }, "stylelint-config-recommended": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz", diff --git a/package.json b/package.json index 12aed3ebfc..6139ce3316 100644 --- a/package.json +++ b/package.json @@ -143,10 +143,7 @@ "shx": "^0.3.2", "sinon": "^7.2.2", "stylelint": "^9.9.0", - "stylelint-config-recommended-scss": "^3.2.0", - "stylelint-config-standard": "^18.2.0", - "stylelint-order": "^2.0.0", - "stylelint-scss": "^3.4.4", + "stylelint-config-bootstrap": "twbs/stylelint-config-bootstrap#v0.1.0", "uglify-js": "^3.4.9", "vnu-jar": "18.11.5" }, diff --git a/site/docs/4.2/examples/.stylelintrc b/site/docs/4.2/examples/.stylelintrc index 5c3be6d59d..283c36b6fb 100644 --- a/site/docs/4.2/examples/.stylelintrc +++ b/site/docs/4.2/examples/.stylelintrc @@ -1,5 +1,7 @@ { - "extends": "../../../../.stylelintrc", + "extends": [ + "stylelint-config-bootstrap/css" + ], "rules": { "at-rule-no-vendor-prefix": null, "comment-empty-line-before": null,