# require-throws-description

Rule `jsdoc/require-throws-description`. Requires a description for `@throws` tags

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1526 by reach, #30 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```ts
/**
 * @throws {SomeType}
 */
```

### Correct: the rule accepts this

```ts
/**
 * @throws {SomeType} Has a description
 */
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/require-throws-description": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsdoc"
  ],
  "rules": {
    "jsdoc/require-throws-description": "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% |

## Related rules

- [jsdoc/require-yields-description](https://lintradar.dev/rules/jsdoc/require-yields-description.md): Requires a description for `@yields` tags
- [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/no-blank-blocks](https://lintradar.dev/rules/jsdoc/no-blank-blocks.md): Removes empty blocks with nothing but possibly line breaks
- [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/require-throws-description. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
