# match-description

Rule `jsdoc/match-description`. Enforces a regular expression pattern on descriptions.

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```ts
/**
 * über die Eingabe.
 */
function quux () {
```

### Correct: the rule accepts this

```ts
/**
 *
 */
```

Examples from the ESLint documentation.

## Enable it

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

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

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

## Related rules

- [jsdoc/lines-before-block](https://lintradar.dev/rules/jsdoc/lines-before-block.md): Enforces minimum number of newlines before JSDoc comment blocks
- [jsdoc/match-name](https://lintradar.dev/rules/jsdoc/match-name.md): Reports the name portion of a JSDoc tag if matching or not matching a given regular expression.
- [jsdoc/convert-to-jsdoc-comments](https://lintradar.dev/rules/jsdoc/convert-to-jsdoc-comments.md): Converts non-JSDoc comments preceding or following nodes into JSDoc ones
- [jsdoc/no-missing-syntax](https://lintradar.dev/rules/jsdoc/no-missing-syntax.md): Reports when certain comment structures are always expected.
- [jsdoc/check-examples](https://lintradar.dev/rules/jsdoc/check-examples.md): @deprecated - Use `getJsdocProcessorPlugin` processor; ensures that (JavaScript) samples within `@example` tags adhere to ESLint rules.
- [jsdoc/no-restricted-syntax](https://lintradar.dev/rules/jsdoc/no-restricted-syntax.md): Reports when certain comment structures are present.

---

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