Skip to main content

typedoc.configs.tsdoc

TypeDoc lint preset for projects authoring comments in a TSDoc-oriented style.

What this preset optimizes forโ€‹

This preset focuses on the parts of TypeDoc comment authoring that line up most closely with canonical TSDoc usage:

  • supported TypeDoc/TSDoc tag usage
  • valid inline link syntax
  • canonical TypeDoc spellings for package and type-parameter tags
  • non-empty @example, @remarks, and @deprecated sections when those tags are present

It intentionally does not try to enforce exhaustive comment coverage or require every optional tag.

When to use this presetโ€‹

Use this preset when your codebase primarily writes TSDoc-style comments and you want TypeDoc-oriented hygiene without enabling the broader completeness requirements from typedoc.configs.strict.

Companion plugin for stricter comment policiesโ€‹

If you want configurable enforcement for required comments, required tags, or stricter policy auditing, pair this plugin with eslint-plugin-tsdoc-require-2.

That companion plugin is a better fit for exhaustive tag-presence and comment-requirement policies.

ESLint flat config exampleโ€‹

import typedocPlugin from "eslint-plugin-typedoc";

export default [typedocPlugin.configs.tsdoc];

Rules in this presetโ€‹

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

Package documentationโ€‹

TypeDoc package documentation: