# no-blank-blocks

Rule `jsdoc/no-blank-blocks`. Removes empty blocks with nothing but possibly line breaks

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 2.5M weekly downloads of presets that enable it
- Trend: +97.4% last quarter
- Rank: #1486 by reach, #271 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/no-blank-blocks` | no | safe | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-blocks.md#repos-sticky-header) |
| Oxlint | `jsdoc/no-blank-blocks` | no | safe | plugin `jsdoc`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/no-blank-blocks.html) |

## Code examples

### Incorrect: the rule reports this

```ts
/** */
```

### Correct: the rule accepts this

```ts
/** @tag */
```

Examples from the ESLint documentation.

## Enable it

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

```js
import jsdoc from "eslint-plugin-jsdoc";

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/no-blank-blocks": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsdoc"
  ],
  "rules": {
    "jsdoc/no-blank-blocks": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [jsdoc/no-types](https://lintradar.dev/rules/jsdoc/no-types.md): This rule reports types being used on `@param` or `@returns` (redundant with TypeScript).
- [jsdoc/require-throws-description](https://lintradar.dev/rules/jsdoc/require-throws-description.md): Requires a description for `@throws` tags
- [jsdoc/require-yields-description](https://lintradar.dev/rules/jsdoc/require-yields-description.md): Requires a description for `@yields` tags
- [jsdoc/check-indentation](https://lintradar.dev/rules/jsdoc/check-indentation.md): Reports invalid padding inside JSDoc blocks.
- [jsdoc/check-line-alignment](https://lintradar.dev/rules/jsdoc/check-line-alignment.md): Reports invalid alignment of JSDoc block lines.
- [jsdoc/check-syntax](https://lintradar.dev/rules/jsdoc/check-syntax.md): Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).

---

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