# require-tags

Rule `jsdoc/require-tags`. Requires tags be present, optionally for specific contexts

- 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: #2108 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/require-tags` | no | no | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-tags.md#repos-sticky-header) |

## Code examples

### Incorrect: the rule reports this

```ts
/**
 *
 */
function quux () {}
```

### Correct: the rule accepts this

```ts
/**
 * @see
 */
function quux () {}
```

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-tags": "error",
    },
  },
];
```

## Related rules

- [jsdoc/require-rejects](https://lintradar.dev/rules/jsdoc/require-rejects.md): Requires that Promise rejections are documented with `@rejects` tags.
- [jsdoc/require-template](https://lintradar.dev/rules/jsdoc/require-template.md): Requires `@template` tags be present when type parameters are used.
- [jsdoc/require-next-description](https://lintradar.dev/rules/jsdoc/require-next-description.md): Requires a description for `@next` tags
- [jsdoc/require-throws](https://lintradar.dev/rules/jsdoc/require-throws.md): Requires that throw statements are documented with `@throws` tags.
- [jsdoc/require-hyphen-before-param-description](https://lintradar.dev/rules/jsdoc/require-hyphen-before-param-description.md): Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).
- [jsdoc/sort-tags](https://lintradar.dev/rules/jsdoc/sort-tags.md): Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.

---

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