Skip to content

Commit 851de13

Browse files
committed
MDL-80710 stylelint Disable sass modules preference rule.
Global functions are now located inside built-in Sass modules. But this is not supported largely yet: Bootstrap: plans to support from version 6: twbs/bootstrap#29853 Scssphp: plans to support in version 2.x: scssphp/scssphp#647 Also see: https://github.com/sass/sass/blob/main/accepted/module-system.md#timeline https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-global-function-names/README.md
1 parent 270b25b commit 851de13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"scss/dollar-variable-empty-line-before": null,
129129
"scss/dollar-variable-pattern": "^([a-z][a-z0-9]*)([a-z0-9_-]+)*$",
130130
"scss/at-mixin-pattern": "^([a-z][a-z0-9]*)([a-z0-9_-]+)*$",
131+
"scss/no-global-function-names": null, # Support of @use is limited, scssphp and Bootstrap 5 do not support it yet.
131132
"csstree/validator": {
132133
"syntaxExtensions": ["sass"]
133134
}

0 commit comments

Comments
 (0)