no-empty-remarks-tag
Disallow empty @remarks tags in TypeDoc comments.
Targeted pattern scopeโ
This rule checks TypeDoc comments containing @remarks block tags.
What this rule reportsโ
This rule reports @remarks tags that do not contain meaningful content, including empty fenced code blocks with no prose or code inside them.
Why this rule existsโ
@remarks sections are often used for operational caveats, lifecycle notes, migration details, and longer-form API guidance.
An empty remarks section adds visible noise to generated documentation and usually signals that the author intended to add important context but never finished it.
โ Incorrectโ
/**
* Normalize user-provided input.
* @remarks
*/
export function normalize(input: string): string {
return input.trim();
}
โ Correctโ
/**
* Normalize user-provided input.
* @remarks Trims leading and trailing whitespace before returning the value.
*/
export function normalize(input: string): string {
return input.trim();
}
Behavior and migration notesโ
- This rule checks only
@remarkstags. It does not require you to use@remarks. - Empty fenced code blocks inside
@remarksare treated as empty content. - This rule does not autofix because meaningful remarks must be authored intentionally.
ESLint flat config exampleโ
import typedocPlugin from "eslint-plugin-typedoc";
export default [
{
plugins: { typedoc: typedocPlugin },
rules: {
"typedoc/no-empty-remarks-tag": "error",
},
},
];
When not to use itโ
Disable this rule only if your team intentionally leaves placeholder @remarks tags in source during a staged documentation workflow.
Package documentationโ
TypeDoc package documentation:
Further readingโ
Rule catalog ID: R026
Adoption resourcesโ
- Pair with
require-exported-doc-comment-descriptionwhen you want exported APIs to include both a strong summary and meaningful long-form follow-up context. - Pair with
typedoc.configs.markdownwhen your rendered markdown docs should avoid placeholder secondary sections.