# require-hyphen-before-param-description

Rule `jsdoc/require-hyphen-before-param-description`. Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2105 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```ts
/**
 * @param foo Foo.
 */
function quux () {
```

### Correct: the rule accepts this

```ts
/**
 * @param foo - Foo.
 */
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-hyphen-before-param-description": "error",
    },
  },
];
```

## Related rules

- [jsdoc/require-file-overview](https://lintradar.dev/rules/jsdoc/require-file-overview.md): Checks that all files have one `@file`, `@fileoverview`, or `@overview` tag at the beginning of the file.
- [jsdoc/require-next-description](https://lintradar.dev/rules/jsdoc/require-next-description.md): Requires a description for `@next` tags
- [jsdoc/require-example](https://lintradar.dev/rules/jsdoc/require-example.md): Requires that all functions (and potentially other contexts) have examples.
- [jsdoc/require-rejects](https://lintradar.dev/rules/jsdoc/require-rejects.md): Requires that Promise rejections are documented with `@rejects` tags.
- [jsdoc/require-description-complete-sentence](https://lintradar.dev/rules/jsdoc/require-description-complete-sentence.md): Requires that block description, explicit `@description`, and `@param`/`@returns` tag descriptions are written in complete sentences.
- [jsdoc/require-tags](https://lintradar.dev/rules/jsdoc/require-tags.md): Requires tags be present, optionally for specific contexts

---

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