# JSDoc recommended for TypeScript

The JSDoc set for TypeScript files, where types in comments would repeat the code.

- Linter: ESLint
- Package: `eslint-plugin-jsdoc` (https://github.com/gajus/eslint-plugin-jsdoc#configuration)
- Author: Brett Zamir (official)
- Rules: 34
- Weekly downloads: 8.1M, +23.8% last quarter
- Technologies: docs (34)

## Install

```sh
npm install -D eslint eslint-plugin-jsdoc
pnpm add -D eslint eslint-plugin-jsdoc
yarn add -D eslint eslint-plugin-jsdoc
bun add -d eslint eslint-plugin-jsdoc
```

## Config: `eslint.config.js`

```js
// eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";

export default [
  jsdoc.configs["flat/recommended-typescript"],
];
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [jsdoc/check-access](https://lintradar.dev/rules/jsdoc/check-access.md) | warn | Checks that `@access` tags have a valid value. | 11.3M |
| [jsdoc/check-property-names](https://lintradar.dev/rules/jsdoc/check-property-names.md) | warn | Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots. | 11.3M |
| [jsdoc/empty-tags](https://lintradar.dev/rules/jsdoc/empty-tags.md) | warn | Checks tags that are expected to be empty (e.g., `@abstract` or `@async`), reporting if they have content | 11.3M |
| [jsdoc/implements-on-classes](https://lintradar.dev/rules/jsdoc/implements-on-classes.md) | warn | Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors). | 11.3M |
| [jsdoc/require-param-name](https://lintradar.dev/rules/jsdoc/require-param-name.md) | warn | Requires that all `@param` tags have names. | 11.3M |
| [jsdoc/require-property](https://lintradar.dev/rules/jsdoc/require-property.md) | warn | Requires that all `@typedef` and `@namespace` tags have `@property` when their type is a plain `object`, `Object`, or `PlainObject`. | 11.3M |
| [jsdoc/require-property-description](https://lintradar.dev/rules/jsdoc/require-property-description.md) | warn | Requires that each `@property` tag has a `description` value. | 11.3M |
| [jsdoc/require-property-name](https://lintradar.dev/rules/jsdoc/require-property-name.md) | warn | Requires that all `@property` tags have names. | 11.3M |
| [jsdoc/require-returns-description](https://lintradar.dev/rules/jsdoc/require-returns-description.md) | warn | Requires that the `@returns` tag has a `description` value (not including `void`/`undefined` type returns). | 11.3M |
| [jsdoc/no-multi-asterisks](https://lintradar.dev/rules/jsdoc/no-multi-asterisks.md) | warn | Prevents use of multiple asterisks at the beginning of lines. | 11.3M |
| [jsdoc/no-defaults](https://lintradar.dev/rules/jsdoc/no-defaults.md) | warn | This rule reports defaults being used on the relevant portion of `@param` or `@default`. | 10.9M |
| [jsdoc/check-tag-names](https://lintradar.dev/rules/jsdoc/check-tag-names.md) | warn | Reports invalid block tag names. | 10.6M |
| [jsdoc/require-param-description](https://lintradar.dev/rules/jsdoc/require-param-description.md) | warn | Requires that each `@param` tag has a `description` value. | 10.6M |
| [jsdoc/require-yields](https://lintradar.dev/rules/jsdoc/require-yields.md) | warn | Requires yields are documented with `@yields` tags. | 10.6M |
| [jsdoc/require-throws-type](https://lintradar.dev/rules/jsdoc/require-throws-type.md) | warn | Requires a type for `@throws` tags | 10.2M |
| [jsdoc/require-yields-type](https://lintradar.dev/rules/jsdoc/require-yields-type.md) | warn | Requires a type for `@yields` tags | 10.2M |
| [jsdoc/check-param-names](https://lintradar.dev/rules/jsdoc/check-param-names.md) | warn | Checks for dupe `@param` names, that nested param names have roots, and that parameter names in function declarations match JSDoc param names. | 9.3M |
| [jsdoc/check-types](https://lintradar.dev/rules/jsdoc/check-types.md) | warn | Reports types deemed invalid (customizable and with defaults, for preventing and/or recommending replacements). | 9.3M |
| [jsdoc/multiline-blocks](https://lintradar.dev/rules/jsdoc/multiline-blocks.md) | warn | Controls how and whether JSDoc blocks can be expressed as single or multiple line blocks. | 9.3M |
| [jsdoc/require-returns-check](https://lintradar.dev/rules/jsdoc/require-returns-check.md) | warn | Requires a return statement in function body if a `@returns` tag is specified in JSDoc comment(and reports if multiple `@returns` tags are present). | 9.3M |
| [jsdoc/require-yields-check](https://lintradar.dev/rules/jsdoc/require-yields-check.md) | warn | 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). | 9.3M |
| [jsdoc/check-alignment](https://lintradar.dev/rules/jsdoc/check-alignment.md) | warn | Reports invalid alignment of JSDoc block asterisks. | 8.9M |
| [jsdoc/require-param](https://lintradar.dev/rules/jsdoc/require-param.md) | warn | Requires that all function parameters are documented with a `@param` tag. | 8.5M |
| [jsdoc/check-values](https://lintradar.dev/rules/jsdoc/check-values.md) | warn | This rule checks the values for a handful of tags: `@version`, `@since`, `@license` and `@author`. | 8.5M |
| [jsdoc/escape-inline-tags](https://lintradar.dev/rules/jsdoc/escape-inline-tags.md) | warn | Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode). | 8.5M |
| [jsdoc/reject-any-type](https://lintradar.dev/rules/jsdoc/reject-any-type.md) | warn | Reports use of `any` or `*` type | 8.5M |
| [jsdoc/reject-function-type](https://lintradar.dev/rules/jsdoc/reject-function-type.md) | warn | Reports use of `Function` type | 8.5M |
| [jsdoc/require-next-type](https://lintradar.dev/rules/jsdoc/require-next-type.md) | warn | Requires a type for `@next` tags | 8.5M |
| [jsdoc/tag-lines](https://lintradar.dev/rules/jsdoc/tag-lines.md) | warn | Enforces lines (or no lines) before, after, or between tags. | 8.5M |
| [jsdoc/ts-no-empty-object-type](https://lintradar.dev/rules/jsdoc/ts-no-empty-object-type.md) | warn | Warns against use of the empty object type | 8.5M |
| [jsdoc/valid-types](https://lintradar.dev/rules/jsdoc/valid-types.md) | warn | Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings). | 8.5M |
| [jsdoc/require-returns](https://lintradar.dev/rules/jsdoc/require-returns.md) | warn | Requires that returns are documented with `@returns`. | 8.1M |
| [jsdoc/require-jsdoc](https://lintradar.dev/rules/jsdoc/require-jsdoc.md) | warn | Checks for presence of JSDoc comments, on functions and potentially other contexts (optionally limited to exports). | 8.1M |
| [jsdoc/no-types](https://lintradar.dev/rules/jsdoc/no-types.md) | warn | This rule reports types being used on `@param` or `@returns` (redundant with TypeScript). | 2.4M |

---

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