From 15f22942f1e4a17ac9dcf848f4dc47d9258bb282 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 16 Nov 2021 11:31:50 +0100 Subject: Get VSCode Stylelint to work again --- .stylelintrc.json | 8 +++++++- assets/css/components/_header.scss | 2 +- package.json | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 82a61ce..f96ade9 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -55,5 +55,11 @@ { "properties": [ "tab-size", "counter-reset", "counter-increment", "resize", "cursor", "pointer-events", "speak", "user-select", "nav-index", "nav-up", "nav-right", "nav-down", "nav-left" ] } ] - } + }, + "overrides": [ + { + "files": ["**/*.scss"], + "customSyntax": "postcss-scss" + } + ] } diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss index 1df7c5b..9afa2e6 100644 --- a/assets/css/components/_header.scss +++ b/assets/css/components/_header.scss @@ -72,7 +72,7 @@ } @include media('>=lg') { - margin-bottom: calc(-.75 * #{prop(--dims --height)}) + margin-bottom: calc(-.75 * #{prop(--dims --height)}); } } } diff --git a/package.json b/package.json index 6d3894e..03dfd7f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "devDependencies": { "stylelint": "^14.1.0", - "stylelint-config-sass-guidelines": "^9.0.1" + "stylelint-config-sass-guidelines": "^9.0.1", + "postcss-scss": "^4.0.2" }, "dependencies": { "autoprefixer": "^10.2.5", -- cgit v1.2.3-70-g09d2