An ESLint plugin providing over 80 JSDoc linting rules, including checks for tag presence, type correctness, param consistency, and comment formatting. At version 62.9.0, it supports ESLint 7–10 and ships TypeScript types. It offers flat config (recommended) and eslintrc configs, with a dedicated TSDoc ruleset. Compared to alternatives like eslint-plugin-require-jsdoc, it is the most comprehensive and actively maintained JSDoc linter, with a monthly release cadence and strong community adoption.
npm install eslint-plugin-jsdocVerified import paths — ran on the pinned version, not inferred.
Shows how to set up eslint-plugin-jsdoc using flat config, with a recommended ruleset and custom settings. Includes a custom rule override and structured tag settings.
Upgrade to eslint-plugin-jsdoc >=62.7.0 to use ESLint 10.
Migrate to flat config using `jsdoc({ config: 'flat/recommended' })`.Avoid using those configs; configure individual rules instead.
Set settings at top level of the config object, not under `settings.jsdoc`.
Upgrade to v62.5.5 or later to support TSPropertySignature inside interfaces.
Run `npm install --save-dev eslint-plugin-jsdoc`.
Correct usage: `jsdoc({ config: 'flat/recommended' })`Use `import { jsdoc } from 'eslint-plugin-jsdoc'` and call `jsdoc(options)`.