I've written an SCSS mixin for creating a series of @container rules:
@mixin form-grid-double-size-breakpoint($itemSize, $gapSize) {
$breakPoint: $gapSize + $itemSize * 2;
@container customcontainername (min-width: #{$breakPoint}) {
// Styles specific for this container width
}
}
The problem is with the interpolation hash-and-curlies that insert the computed breakpoint width. These are necessary to get the @container rule to work. It is valid SCSS code that compiles well and runs as expected. However, in VisualStudio Code, it is regarded as invalid code:
"code": "css-lcurlyexpected",
"message": "{ expected",
"code": "css-ruleorselectorexpected",
"message": "at-rule or selector expected",
So I would like to get rid of this misleading error message in VS Code, but can't find a description of what linter is responsible for this and how to disable/suppress this faulty error message.
I have tried all sorts of SCSS alternatives, like (string.)unquote, putting the hash-and-curlies within the variable declaration, etc. But then the @container query becomes invalid.
Any help will be highly appreciated,
Michel