# no-continue

Rule `eslint/no-continue`. Disallow `continue` statements

- Source: eslint
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 9.9M weekly downloads of presets that enable it
- Trend: +2.2% last quarter
- Rank: #1088 by reach, #1595 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `no-continue` | no | no | package `eslint` | [docs](https://eslint.org/docs/latest/rules/no-continue) |
| Oxlint | `no-continue` | no | no | plugin `eslint`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-continue.html) |
| Biome | `style/noContinue` | no | no | group style, since 2.3.4 | [docs](https://biomejs.dev/linter/rules/no-continue/) |

## Code examples

### Incorrect: the rule reports this

```js
let sum = 0,
    i;

for(i = 0; i < 10; i++) {
    if(i >= 5) {
        continue;
    }

    sum += i;
}
```

```js
let sum = 0,
    i;

labeledLoop: for(i = 0; i < 10; i++) {
    if(i >= 5) {
        continue labeledLoop;
    }

    sum += i;
}
```

### Correct: the rule accepts this

```js
let sum = 0,
    i;

for(i = 0; i < 10; i++) {
    if(i < 5) {
       sum += i;
    }
}
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
export default [
  {
    rules: {
      "no-continue": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "no-continue": "error"
  }
}
```

### Biome: `biome.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Airbnb base](https://lintradar.dev/presets/airbnb-base.md) | ESLint | `eslint-config-airbnb-base` | 241 | 6.5M | +2.1% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |

## Related rules

- [eslint/no-underscore-dangle](https://lintradar.dev/rules/eslint/no-underscore-dangle.md): Disallow dangling underscores in identifiers
- [eslint/no-restricted-exports](https://lintradar.dev/rules/eslint/no-restricted-exports.md): Disallow specified names in exports
- [eslint/consistent-return](https://lintradar.dev/rules/eslint/consistent-return.md): Require `return` statements to either always or never specify values
- [eslint/accessor-pairs](https://lintradar.dev/rules/eslint/accessor-pairs.md): Enforce getter and setter pairs in objects and classes
- [eslint/no-unmodified-loop-condition](https://lintradar.dev/rules/eslint/no-unmodified-loop-condition.md): Disallow unmodified loop conditions
- [eslint/no-console](https://lintradar.dev/rules/eslint/no-console.md): Disallow the use of `console`

---

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