typedoc.configs.jsdoc
TypeDoc lint preset for projects authoring comments in a JSDoc-oriented style.
What this preset optimizes forโ
This preset focuses on the TypeDoc-supported subset of JSDoc behavior:
- supported tag usage within TypeDoc's JSDoc compatibility model
- valid inline link syntax that TypeDoc can actually render
- non-empty
@exampleand@deprecatedsections when those tags are present
It does not try to emulate the full official JSDoc toolchain, because TypeDoc intentionally supports only a subset of JSDoc semantics.
When to use this presetโ
Use this preset when your codebase is primarily written with JSDoc-style comments, but TypeDoc is the generator consuming those comments.
Companion plugin for stricter comment policiesโ
If you want configurable enforcement for required comments, required tags, or broader auditing rules, pair this plugin with eslint-plugin-tsdoc-require-2.
That companion plugin is the better home for exhaustive comment/tag requirement policies.
ESLint flat config exampleโ
import typedocPlugin from "eslint-plugin-typedoc";
export default [typedocPlugin.configs.jsdoc];
Rules in this presetโ
Fixlegend:๐ง= autofixable๐ก= suggestions availableโ= report only
| Rule | Fix |
|---|---|
no-empty-example-tag | โ |
no-empty-see-tag | โ |
no-malformed-inline-links | ๐ก |
no-unknown-tags | ๐ง |
require-deprecated-tag-description | โ |
Package documentationโ
TypeDoc package documentation: