Skip to content

valid-types cannot parse links right after another tag #1381

Closed
@LukeAbby

Description

@LukeAbby

Expected behavior

I expected @remarks {@link SomeType} to parse.

Actual behavior

I get an error saying it's invalid. I considered posting this issue on https://github.com/jsdoc-type-pratt-parser based upon the guidance in this issue format but I don't believe it's part of the concern of that library. It's probably being given an erroneous input.

ESLint Config

{
    "jsdoc/valid-types": "error"
}

ESLint sample

type SomeType = number;

// Ok
/** {@link SomeType} */

// Ok
/** @remarks foo bar lorem ipsum {@link SomeType} */

// Not ok
/** @remarks {@link SomeType} */

Environment

  • Node version: v20.15.0
  • ESLint version v9.26.0
  • eslint-plugin-jsdoc version: ^50.6.11

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions