From b895020644b9b9b098586f84b687babf5f982078 Mon Sep 17 00:00:00 2001 From: freezy Date: Sat, 3 Feb 2018 16:18:57 +0100 Subject: [PATCH] Raised required version of stylelint-scss and enabled scss/dollar-variable-default rule --- .stylelintrc | 1 + package-lock.json | 6 +++--- package.json | 2 +- scss/utilities/_position.scss | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 4a47533189e5..e53251258f4c 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/package-lock.json b/package-lock.json index 0a99c32a5a66..ffe4cc6cb29a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11682,9 +11682,9 @@ } }, "stylelint-scss": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-2.2.0.tgz", - "integrity": "sha512-O3jIpujSDrMHlGoXT3AYsOz2DPb49Y+0rCPGU34BHrbMBWSciwkvtm4WFrYi/cDnbpkXFemC0lHwmtspK8IQEA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-2.3.0.tgz", + "integrity": "sha512-gYLw1jma/BUZ9eQ3hsrL/7bddQN2BJ13oSp0A0kOqje4hBrSCrUjf7rmpnK8taRWoU3KASwMo4apWg+YopDK5Q==", "dev": true, "requires": { "lodash": "4.17.4", diff --git a/package.json b/package.json index 6cb5ca583429..cdb10fa681ac 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "stylelint-config-recommended-scss": "^3.0.0", "stylelint-config-standard": "^18.0.0", "stylelint-order": "^0.8.0", - "stylelint-scss": "^2.2.0", + "stylelint-scss": "^2.3.0", "uglify-js": "^3.3.9", "vnu-jar": "^17.11.1", "workbox-build": "^2.1.2" diff --git a/scss/utilities/_position.scss b/scss/utilities/_position.scss index ef962eddbd47..9ecdeeb9be12 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 {