Configure JSDoc validation with JS Style Kit
eslint-plugin-jsdoc
plugin. This helps ensure consistent and well-documented code, which is particularly useful for library projects.
jsdoc
option in your ESLint configuration:
requireJsdoc
is set to true
, JSDoc comments are required for:
jsdoc/no-types
rule since TypeScript already provides type informationjsdoc/no-undefined-types
rule to avoid conflicts with TypeScript typesrequireJsdoc: true
@example
tag for complex functions@throws
to document exceptions that might be thrown