# require-param

Rule `jsdoc/require-param`. Requires that all function parameters are documented with a `@param` tag.

- Source: jsdoc
- Technologies: JSDoc
- Kind: suspicious
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 8.5M weekly downloads of presets that enable it
- Trend: +22.0% last quarter
- Rank: #1132 by reach, #1377 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
/**
 * @param cfg
 * @param cfg.num
 */
function quux ({num, ...extra}) {
}
```

```js
/**
 * @param cfg
 * @param cfg.num
 * @param cfg.extra
 */
function quux ({num, ...extra}) {
}
```

### Correct: the rule accepts this

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

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

### Oxlint: `.oxlintrc.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [JSDoc recommended](https://lintradar.dev/presets/jsdoc-recommended.md) | ESLint | `eslint-plugin-jsdoc` | 37 | 8.1M | +23.8% |
| [JSDoc recommended for TypeScript](https://lintradar.dev/presets/jsdoc-recommended-typescript.md) | ESLint | `eslint-plugin-jsdoc` | 34 | 8.1M | +23.8% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [jsdoc/check-alignment](https://lintradar.dev/rules/jsdoc/check-alignment.md): Reports invalid alignment of JSDoc block asterisks.
- [jsdoc/check-values](https://lintradar.dev/rules/jsdoc/check-values.md): This rule checks the values for a handful of tags: `@version`, `@since`, `@license` and `@author`.
- [jsdoc/require-yields-check](https://lintradar.dev/rules/jsdoc/require-yields-check.md): Ensures that if a `@yields` is present that a `yield` (or `yield` with a value) is present in the function body (or that if a `@next` is present that there is a yield with a return value present).
- [jsdoc/escape-inline-tags](https://lintradar.dev/rules/jsdoc/escape-inline-tags.md): Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
- [jsdoc/require-returns-check](https://lintradar.dev/rules/jsdoc/require-returns-check.md): Requires a return statement in function body if a `@returns` tag is specified in JSDoc comment(and reports if multiple `@returns` tags are present).
- [jsdoc/reject-any-type](https://lintradar.dev/rules/jsdoc/reject-any-type.md): Reports use of `any` or `*` type

---

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