# noUnusedTemplateLiteral

Rule `biome/noUnusedTemplateLiteral`. Disallow template literals if interpolation and special-character handling are not needed

- Source: biome
- Technologies: TypeScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1548 by reach, #52 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/noUnusedTemplateLiteral` | no | safe | group style, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-unused-template-literal/) |

## Code examples

### Incorrect: the rule reports this

```js
const foo = `bar`
```

```js
const foo = `bar `
```

### Correct: the rule accepts this

```js
const foo = `bar
has newline`;
```

```js
const foo = `"bar"`
```

```js
const foo = `'bar'`
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "noUnusedTemplateLiteral": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noTopLevelLiterals](https://lintradar.dev/rules/biome/noTopLevelLiterals.md): Require the JSON top-level value to be an array or object.
- [biome/noUselessCatchBinding](https://lintradar.dev/rules/biome/noUselessCatchBinding.md): Disallow unused error parameters in `catch` clauses.
- [biome/noShoutyConstants](https://lintradar.dev/rules/biome/noShoutyConstants.md): Disallow constants whose string value is the same as their uppercase name.
- [biome/noValueAtRule](https://lintradar.dev/rules/biome/noValueAtRule.md): Disallow the `@value` rule in CSS Modules.
- [biome/noRootType](https://lintradar.dev/rules/biome/noRootType.md): Disallow configured GraphQL root operation types.
- [biome/useBaseline](https://lintradar.dev/rules/biome/useBaseline.md): Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.

---

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