# require-template-description

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

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1768 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

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

### Correct: the rule accepts this

```ts
/**
 * @template {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-template-description": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsdoc"
  ],
  "rules": {
    "jsdoc/require-template-description": "error"
  }
}
```

## Related rules

- [jsdoc/ts-method-signature-style](https://lintradar.dev/rules/jsdoc/ts-method-signature-style.md): Prefers either function properties or method signatures
- [jsdoc/require-description](https://lintradar.dev/rules/jsdoc/require-description.md): Requires that all functions (and potentially other contexts) have a description.
- [jsdoc/require-asterisk-prefix](https://lintradar.dev/rules/jsdoc/require-asterisk-prefix.md): Requires that each JSDoc line starts with an `*`.
- [jsdoc/no-blank-block-descriptions](https://lintradar.dev/rules/jsdoc/no-blank-block-descriptions.md): If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
- [jsdoc/no-bad-blocks](https://lintradar.dev/rules/jsdoc/no-bad-blocks.md): This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
- [jsdoc/informative-docs](https://lintradar.dev/rules/jsdoc/informative-docs.md): This rule reports doc comments that only restate their attached name.

---

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