Skip to content

bug: false positive of no-unused-vars for symbols used in TSDoc comments #1472

@KnorpelSenf

Description

@KnorpelSenf

Lint Name

no-unused-vars

Code Snippet

import type { Foo } from "./file.ts";

/**
 * Related to {@link Foo.bar | this property}
 */
const baz = 42;

Expected Result

The symbol Foo is needed in order to make the TSDoc comment of baz valid, so it is used. I expect deno_lint to see this, and to exit with status code 0.

Actual Result

no-unused-vars is reported

Additional Info

Version

deno 2.6.5 (stable, release, x86_64-unknown-linux-gnu)
v8 14.2.231.17-rusty
typescript 5.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions