talira

eslint-plugin-jsdoc

JSDoc linting rules for ESLint.

open sourceBSD-3-Clausefree

eslint-plugin-jsdoc adds rules to ESLint that check JSDoc comments in JavaScript and TypeScript: that functions are documented, that @param names and types match the code, that tags and types are valid, and that comments follow a consistent style. It works with flat config and eslintrc.

Problems it solves

  • my JSDoc @param names drift out of sync with the function signatures
  • make ESLint require doc comments on exported functions
  • lint JSDoc comments in a JavaScript codebase

Features

  • rules such as require-jsdoc, require-param, check-param-names, check-types and valid-types
  • flat config (procedural and declarative) and eslintrc configuration
  • TypeScript and TSDoc modes

Alternatives

The same job

These do what eslint-plugin-jsdoc does.

  1. ESLint Find and fix problems in your JavaScript code.
  2. eslint-plugin-simple-import-sort Autofixable import and export sorting for ESLint
  3. Oxc The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust
  4. typescript-eslint The tooling that lets ESLint and Prettier lint and read TypeScript
  5. eslint-plugin-unicorn More than 300 powerful ESLint rules
  6. XO Zero-config JavaScript and TypeScript linter built on ESLint

Compare eslint-plugin-jsdoc with the top 3