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.
- ESLint Find and fix problems in your JavaScript code.
- eslint-plugin-simple-import-sort Autofixable import and export sorting for ESLint
- Oxc The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust
- typescript-eslint The tooling that lets ESLint and Prettier lint and read TypeScript
- eslint-plugin-unicorn More than 300 powerful ESLint rules
- XO Zero-config JavaScript and TypeScript linter built on ESLint
