# noMissingScssInterpolation

Rule `biome/noMissingScssInterpolation`. Disallow Sass variables and function calls in custom property values without `#{}` interpolation.

- Source: biome
- Technologies: CSS
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1913 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noMissingScssInterpolation` | no | unsafe | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-missing-scss-interpolation/) |

## Code examples

### Incorrect: the rule reports this

```scss
$gap: 8px;

:root {
  --gap: $gap;
}
```

```scss
@use "sass:math";

:root {
  --pi: math.$pi;
}
```

```scss
:root {
  --muted: darken(#fff, 10%);
}
```

### Correct: the rule accepts this

```scss
@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.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noMissingScssInterpolation": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noMisleadingReturnType](https://lintradar.dev/rules/biome/noMisleadingReturnType.md): Detect return type annotations that are misleadingly wider than what the implementation actually returns.
- [biome/noNamespaceImport](https://lintradar.dev/rules/biome/noNamespaceImport.md): Disallow the use of namespace imports.
- [biome/noJsxLeakedDollar](https://lintradar.dev/rules/biome/noJsxLeakedDollar.md): Flags text nodes with a trailing `$` before a JSX expression.
- [biome/noNestedComponentDefinitions](https://lintradar.dev/rules/biome/noNestedComponentDefinitions.md): Disallows defining React components inside other components.
- [biome/noInlineStyles](https://lintradar.dev/rules/biome/noInlineStyles.md): Disallow the use of inline styles.
- [biome/noNonScalableViewport](https://lintradar.dev/rules/biome/noNonScalableViewport.md): Disallow disabling zoom with `user-scalable=no` in the `<meta name="viewport">` element.

---

Web page: https://lintradar.dev/rules/biome/noMissingScssInterpolation. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
