From 2dc9c76d75fcbbf3ff4181a09e0b0e0bae0caf20 Mon Sep 17 00:00:00 2001 From: freezy Date: Wed, 7 Feb 2018 14:28:35 +0100 Subject: [PATCH] Enable `scss/dollar-variable-default` rule (#25542) This checks if all variables are `!default`. --- .stylelintrc | 1 + scss/utilities/_position.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/.stylelintrc b/.stylelintrc index 4a47533189..e53251258f 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 ef962eddbd..9ecdeeb9be 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 {