# noJsxLeakedDollar

Rule `biome/noJsxLeakedDollar`. Flags text nodes with a trailing `$` before a JSX expression.

- Source: biome
- Technologies: React
- Kind: suspicious
- 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: #1911 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noJsxLeakedDollar` | no | unsafe | group suspicious, since 2.4.13 | [docs](https://biomejs.dev/linter/rules/no-jsx-leaked-dollar/) |

## Code examples

### Incorrect: the rule reports this

```jsx
function MyComponent({ user }) {
  return <div>Hello ${user.name}</div>;
}
```

```jsx
function MyComponent({ user }) {
  return <div>${user.name} is your name</div>;
}
```

### Correct: the rule accepts this

```jsx
function MyComponent({ user }) {
  return <div>Hello {user.name}</div>;
}
```

```jsx
// A lone `$` before a single expression is treated as intentional (e.g. a price).
function MyComponent({ price }) {
  return <div>${price}</div>;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noJsxLeakedDollar": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noInlineStyles](https://lintradar.dev/rules/biome/noInlineStyles.md): Disallow the use of inline styles.
- [biome/noMisleadingReturnType](https://lintradar.dev/rules/biome/noMisleadingReturnType.md): Detect return type annotations that are misleadingly wider than what the implementation actually returns.
- [biome/noHexColors](https://lintradar.dev/rules/biome/noHexColors.md): Disallow hex colors.
- [biome/noMissingScssInterpolation](https://lintradar.dev/rules/biome/noMissingScssInterpolation.md): Disallow Sass variables and function calls in custom property values without `#{}` interpolation.
- [biome/noExcessiveSelectorComplexity](https://lintradar.dev/rules/biome/noExcessiveSelectorComplexity.md): Limit how complex selectors can be, and disallow chosen parts of selectors.
- [biome/noNamespaceImport](https://lintradar.dev/rules/biome/noNamespaceImport.md): Disallow the use of namespace imports.

---

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