---
title: "lint/statements/no-empty"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/statements/no-empty" />

In the [`dead-code`](/docs/rules/sets/dead-code) set. Safe fix.

## What it does

Remove useless (semicolon) statements.

## Configuration

```toml title="pun.toml"
[lint.rules]
"statements/no-empty" = "error"
```

To skip it in some files, add an [override](/docs/configuration/pun-toml#lint) or a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`no_empty_statement`](https://cs.symfony.com/doc/rules/semicolon/no_empty_statement.html) (php-cs-fixer)
- [`no-noop`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-noop) (mago-linter)

[More lint/statements rules](/docs/rules/lint/statements) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
