From 427c089961c8773386de0503a1da8b586587df38 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 22 May 2022 19:24:08 -0700 Subject: [PATCH] Stylelint: Disable `custom-property-empty-line-before` --- .stylelintrc | 1 + scss/_badge.scss | 2 -- scss/_breadcrumb.scss | 2 -- scss/_buttons.scss | 2 -- scss/_dropdown.scss | 2 +- scss/_nav.scss | 2 +- scss/_pagination.scss | 2 -- scss/_popover.scss | 2 -- scss/_progress.scss | 2 +- scss/_root.scss | 2 -- scss/_toasts.scss | 2 +- scss/_tooltip.scss | 2 -- scss/mixins/_buttons.scss | 2 -- scss/mixins/_pagination.scss | 2 +- 14 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 94c8ec1552..8243d9f28a 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -3,6 +3,7 @@ "stylelint-config-twbs-bootstrap" ], "rules": { + "custom-property-empty-line-before": null, "declaration-property-value-disallowed-list": { "border": "none", "outline": "none" diff --git a/scss/_badge.scss b/scss/_badge.scss index dd4fe16912..5f1695e7ae 100644 --- a/scss/_badge.scss +++ b/scss/_badge.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - // Base class // // Requires one of the contextual, color modifier classes for `color` and diff --git a/scss/_breadcrumb.scss b/scss/_breadcrumb.scss index bc9fb54e9e..b8252ff215 100644 --- a/scss/_breadcrumb.scss +++ b/scss/_breadcrumb.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - .breadcrumb { // scss-docs-start breadcrumb-css-vars --#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x}; diff --git a/scss/_buttons.scss b/scss/_buttons.scss index 2ecb785eda..a0d7a071e7 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - // // Base styles // diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index ef4eaafb04..d4be30eeaf 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -23,7 +23,7 @@ --#{$prefix}dropdown-padding-y: #{$dropdown-padding-y}; --#{$prefix}dropdown-spacer: #{$dropdown-spacer}; @include rfs($dropdown-font-size, --#{$prefix}dropdown-font-size); - --#{$prefix}dropdown-color: #{$dropdown-color}; // stylelint-disable-line custom-property-empty-line-before + --#{$prefix}dropdown-color: #{$dropdown-color}; --#{$prefix}dropdown-bg: #{$dropdown-bg}; --#{$prefix}dropdown-border-color: #{$dropdown-border-color}; --#{$prefix}dropdown-border-radius: #{$dropdown-border-radius}; diff --git a/scss/_nav.scss b/scss/_nav.scss index aa1468e944..e96b273fb9 100644 --- a/scss/_nav.scss +++ b/scss/_nav.scss @@ -8,7 +8,7 @@ --#{$prefix}nav-link-padding-x: #{$nav-link-padding-x}; --#{$prefix}nav-link-padding-y: #{$nav-link-padding-y}; @include rfs($nav-link-font-size, --#{$prefix}nav-link-font-size); - --#{$prefix}nav-link-font-weight: #{$nav-link-font-weight}; // stylelint-disable-line custom-property-empty-line-before + --#{$prefix}nav-link-font-weight: #{$nav-link-font-weight}; --#{$prefix}nav-link-color: #{$nav-link-color}; --#{$prefix}nav-link-hover-color: #{$nav-link-hover-color}; --#{$prefix}nav-link-disabled-color: #{$nav-link-disabled-color}; diff --git a/scss/_pagination.scss b/scss/_pagination.scss index 9ebc5a4676..e8e10a6d68 100644 --- a/scss/_pagination.scss +++ b/scss/_pagination.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - .pagination { // scss-docs-start pagination-css-vars --#{$prefix}pagination-padding-x: #{$pagination-padding-x}; diff --git a/scss/_popover.scss b/scss/_popover.scss index 591e85c37e..b00c02959d 100644 --- a/scss/_popover.scss +++ b/scss/_popover.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - .popover { // scss-docs-start popover-css-vars --#{$prefix}popover-zindex: #{$zindex-popover}; diff --git a/scss/_progress.scss b/scss/_progress.scss index 01f488b657..1bfafb58fa 100644 --- a/scss/_progress.scss +++ b/scss/_progress.scss @@ -12,7 +12,7 @@ // scss-docs-start progress-css-vars --#{$prefix}progress-height: #{$progress-height}; @include rfs($progress-font-size, --#{$prefix}progress-font-size); - --#{$prefix}progress-bg: #{$progress-bg}; // stylelint-disable-line custom-property-empty-line-before + --#{$prefix}progress-bg: #{$progress-bg}; --#{$prefix}progress-border-radius: #{$progress-border-radius}; --#{$prefix}progress-box-shadow: #{$progress-box-shadow}; --#{$prefix}progress-bar-color: #{$progress-bar-color}; diff --git a/scss/_root.scss b/scss/_root.scss index e16d2a3f69..ae22687b1f 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - :root { // Note: Custom variable values only support SassScript inside `#{}`. diff --git a/scss/_toasts.scss b/scss/_toasts.scss index 4663e885ce..68ed8ab7c0 100644 --- a/scss/_toasts.scss +++ b/scss/_toasts.scss @@ -5,7 +5,7 @@ --#{$prefix}toast-spacing: #{$toast-spacing}; --#{$prefix}toast-max-width: #{$toast-max-width}; @include rfs($toast-font-size, --#{$prefix}toast-font-size); - --#{$prefix}toast-color: #{$toast-color}; // stylelint-disable-line custom-property-empty-line-before + --#{$prefix}toast-color: #{$toast-color}; --#{$prefix}toast-bg: #{$toast-background-color}; --#{$prefix}toast-border-width: #{$toast-border-width}; --#{$prefix}toast-border-color: #{$toast-border-color}; diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss index 922ed85d79..df8cdc58b7 100644 --- a/scss/_tooltip.scss +++ b/scss/_tooltip.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - // Base class .tooltip { // scss-docs-start tooltip-css-vars diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 5da4d22324..8d2c0f81c9 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -1,5 +1,3 @@ -// stylelint-disable custom-property-empty-line-before - // Button variants // // Easily pump out default styles, as well as :hover, :focus, :active, diff --git a/scss/mixins/_pagination.scss b/scss/mixins/_pagination.scss index 4c178ffad8..0d657964fb 100644 --- a/scss/mixins/_pagination.scss +++ b/scss/mixins/_pagination.scss @@ -5,6 +5,6 @@ --#{$prefix}pagination-padding-x: #{$padding-x}; --#{$prefix}pagination-padding-y: #{$padding-y}; @include rfs($font-size, --#{$prefix}pagination-font-size); - --#{$prefix}pagination-border-radius: #{$border-radius}; // stylelint-disable-line custom-property-empty-line-before + --#{$prefix}pagination-border-radius: #{$border-radius}; } // scss-docs-end pagination-mixin