From 6d03737dc522124416283f8a5c04f5cf140fa967 Mon Sep 17 00:00:00 2001 From: Nick Charlton Date: Fri, 2 Feb 2024 15:40:39 +0000 Subject: [PATCH] Allow !default annotations In addition to being valid SCSS, we often use `!default` in places like `variables.scss`. https://github.com/stylelint-scss/stylelint-config-recommended-scss/issues/131 https://github.com/stylelint-scss/stylelint-config-recommended-scss/pull/132 --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index c00f722..2f28cef 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,12 @@ module.exports = { 'stylelint-order', ], rules: { + 'annotation-no-unknown': [ + true, + { + ignoreAnnotations: ['default', 'global'], + }, + ], 'at-rule-no-unknown': null, 'color-hex-length': 'long', 'color-named': 'never',