Skip to main content

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 @example and @deprecated sections 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โ€‹

  • Fix legend:
    • ๐Ÿ”ง = autofixable
    • ๐Ÿ’ก = suggestions available
    • โ€” = report only
RuleFix
no-empty-example-tagโ€”
no-empty-see-tagโ€”
no-malformed-inline-links๐Ÿ’ก
no-unknown-tags๐Ÿ”ง
require-deprecated-tag-descriptionโ€”

Package documentationโ€‹

TypeDoc package documentation: