---
title: "lint/dead-code/no-unused-return-value"
pagination: false
---

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

<RuleId id="lint/dead-code/no-unused-return-value" />

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

## What it does

Detects private methods whose return value is thrown away at every call site.

## Configuration

```toml title="pun.toml"
[lint.rules]
"dead-code/no-unused-return-value" = "error"
```

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

## Replaces

- [`no-unused-return-value`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-unused-return-value) (mago-linter)

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