aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreezy <[email protected]>2018-02-07 14:28:35 +0100
committerXhmikosR <[email protected]>2018-02-07 15:28:35 +0200
commit2dc9c76d75fcbbf3ff4181a09e0b0e0bae0caf20 (patch)
tree0a570a77e1d57288dbd6e65551965a24fa1ce1b1
parent9057d8da164bed683f49d30c6414753dad41de3e (diff)
downloadbootstrap-2dc9c76d75fcbbf3ff4181a09e0b0e0bae0caf20.tar.xz
bootstrap-2dc9c76d75fcbbf3ff4181a09e0b0e0bae0caf20.zip
Enable `scss/dollar-variable-default` rule (#25542)
This checks if all variables are `!default`.
-rw-r--r--.stylelintrc1
-rw-r--r--scss/utilities/_position.scss1
2 files changed, 2 insertions, 0 deletions
diff --git a/.stylelintrc b/.stylelintrc
index 4a4753318..e53251258 100644
--- a/.stylelintrc
+++ b/.stylelintrc
@@ -221,6 +221,7 @@
],
"property-no-vendor-prefix": true,
"rule-empty-line-before": null,
+ "scss/dollar-variable-default": [true, { "ignore": "local" }],
"selector-attribute-quotes": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-newline-before": "never-multi-line",
diff --git a/scss/utilities/_position.scss b/scss/utilities/_position.scss
index ef962eddb..9ecdeeb9b 100644
--- a/scss/utilities/_position.scss
+++ b/scss/utilities/_position.scss
@@ -3,6 +3,7 @@
// Common values
// Sass list not in variables since it's not intended for customization.
+// stylelint-disable-next-line scss/dollar-variable-default
$positions: static, relative, absolute, fixed, sticky;
@each $position in $positions {