Skip to content

[valid-types] Using module path in @typedef throws error. #1557

@alphanull

Description

@alphanull

I need a full module path in my typedefs to be able to reference those globally, for example:

@typedef {Object} module:src/core/Player~mediaFormat

Expected behavior

Should lint OK, as with versions prior to 60.8.1

Actual behavior

Since version 60.8.1, this results in an error when linting, so this might be a regression:

867:1 warning Syntax error in name: module:src/core/Player~mediaFormat jsdoc/valid-types

ESLint Config

'jsdoc/valid-types': 'warn'

Environment

  • Node version: v22.13.1
  • ESLint version v9.37.0
  • eslint-plugin-jsdoc version: 60.8.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions