# noEmptyTypeParameters

Rule `biome/noEmptyTypeParameters`. Disallow empty type parameters in type aliases and interfaces.

- Source: biome
- Technologies: TypeScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #516 by reach, #151 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/noEmptyTypeParameters` | yes | no | group complexity, since 1.5.0 | [docs](https://biomejs.dev/linter/rules/no-empty-type-parameters/) |

## Code examples

### Incorrect: the rule reports this

```ts
interface Foo<> {}
```

```ts
type Bar<> = {};
```

### Correct: the rule accepts this

```ts
interface Foo {}
```

```ts
type Foo<T> = {
 bar: T;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noEmptyTypeParameters": "error"
      }
    }
  }
}
```

## Presets that enable it

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

## Related rules

- [biome/noEmptyBlock](https://lintradar.dev/rules/biome/noEmptyBlock.md): Disallow empty CSS blocks.
- [biome/noFlatMapIdentity](https://lintradar.dev/rules/biome/noFlatMapIdentity.md): Disallow to use unnecessary callback on `flatMap`.
- [biome/noDynamicNamespaceImportAccess](https://lintradar.dev/rules/biome/noDynamicNamespaceImportAccess.md): Disallow accessing namespace imports dynamically.
- [biome/noGlobalIsFinite](https://lintradar.dev/rules/biome/noGlobalIsFinite.md): Use `Number.isFinite` instead of global `isFinite`.
- [biome/noDuplicateVariableNames](https://lintradar.dev/rules/biome/noDuplicateVariableNames.md): Require all variable definitions to be unique.
- [biome/noGlobalIsNan](https://lintradar.dev/rules/biome/noGlobalIsNan.md): Use `Number.isNaN` instead of global `isNaN`.

---

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