# noUselessContinue

Rule `biome/noUselessContinue`. Avoid using unnecessary `continue`.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #576 by reach, #211 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/noUselessContinue` | yes | safe | group complexity, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-useless-continue/) |

## Code examples

### Incorrect: the rule reports this

```js
loop: for (let i = 0; i < 5; i++) {
  continue loop;
}
```

```js
while (i--) {
  continue;
}
```

```js
while (1) {
  continue;
}
```

### Correct: the rule accepts this

```js
while (i) {
  if (i > 5) {
    continue;
  }
  console.log(i);
  i--;
}

loop: while (1) {
  forLoop: for (let i = 0; i < 5; i++) {
    if (someCondition) {
      continue loop;
    }
  }
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noUselessContinue": "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/noUnusedImports](https://lintradar.dev/rules/biome/noUnusedImports.md): Disallow unused imports.
- [biome/noUselessEscapeInString](https://lintradar.dev/rules/biome/noUselessEscapeInString.md): Disallow unnecessary escapes in string literals.
- [biome/noUnusedFunctionParameters](https://lintradar.dev/rules/biome/noUnusedFunctionParameters.md): Disallow unused function parameters.
- [biome/noUselessReExportAll](https://lintradar.dev/rules/biome/noUselessReExportAll.md): Disallow `export * from` a module that has no named exports.
- [biome/noUnsafeIframeSandbox](https://lintradar.dev/rules/biome/noUnsafeIframeSandbox.md): Disallow an unsafe combination of the `sandbox` attribute.
- [biome/noUselessStringRaw](https://lintradar.dev/rules/biome/noUselessStringRaw.md): Disallow unnecessary `String.raw` function in template string literals without any escape sequence.

---

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