nursery/noMissingScssInterpolation
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"noMissingScssInterpolation": "error"
}
}
}
}Disallow Sass variables and function calls in custom property values without #{} interpolation.
$gap: 8px;
:root {
--gap: $gap;
}@use "sass:math";
:root {
--pi: math.$pi;
}:root {
--muted: darken(#fff, 10%);
}@use "sass:math";
$gap: 8px;
:root {
--gap: #{$gap};
--half: #{math.div(8px, 2)};
--label: "$gap";
--width: calc(100% - var(--gutter));
}
a {
margin: $gap;
}Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noMissingScssInterpolation
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"noMissingScssInterpolation": "error"
}
}
}
}Detect return type annotations that are misleadingly wider than what the implementation actually returns.
Flags text nodes with a trailing $ before a JSX expression.
Disallows defining React components inside other components.
Disallow disabling zoom with user-scalable=no in the <meta name="viewport"> element.