Skip to content

Conflict and warning when using @decorator tag with ESLint + TypeDoc "A tag is already defined using the name @decorator" #3032

@marmoure

Description

@marmoure

Search terms

@decorator tsdoc, eslint-plugin-tsdoc, duplicate tag, unknown block tag, custom TSDoc tag conflict

Expected Behavior

TypeDoc should provide a supported workaround or extensibility mechanism for recognizing the @decorator tag, since it remains part of the official TSDoc specification:
https://tsdoc.org/pages/tags/decorator/

The TypeDoc team has explicitly stated that support for @decorator has been removed and will not be reintroduced.
However, projects that document decorators still need a reliable, functional solution that prevents warnings without modifying TypeDoc’s source.

TypeDoc should either:

  • Offer a documented API or plugin hook to register and suppress warnings for custom tags like @decorator, or

  • Accept a configuration-based extension (e.g., via typedoc.json) that can define tags safely without conflicts or warnings.

Actual Behavior

When documenting decorators, TypeDoc continues to emit:

[warning] Encountered an unknown block tag @decorator

even after implementing the suggested workaround from the maintainers:
#2346 (comment)

This indicates that the provided workaround no longer works as intended in current TypeDoc releases.

Steps to reproduce the bug

Create a simple TypeDoc project.

Add a @decorator tag:

/**
 * @decorator @makeComponent
 */
export class VideoNode {}

Run TypeDoc:

npx typedoc

We get: unknown block tag @decorator.
Apply the workaround described in
#2346 (comment)
Run again: the same warning still appears.

For a full picture you can check our lib: https://github.com/evolvedbinary/lwdita

Our Position

We use @decorator in our code documentation.

We understand and acknowledge that TypeDoc has removed support for this tag as stated in TypeStrong/typedoc#2346

We have applied the official workaround suggested in this comment

Despite following that guidance, TypeDoc continues to log:

[warning] Encountered an unknown block tag @decorator

We therefore need an updated, supported method for handling or suppressing @decorator warnings in TypeDoc 0.28+.

Environment

TypeDoc version: 0.28.14
TypeScript version: 5.9.3
Node.js version: 22.16.0
ESLint version: 9.38.0
eslint-plugin-tsdoc: 0.4.0
OS: Windows 10 x64 and CircleCI Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    no bugThis is expected behavior

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions