Skip to content

Crash TypeError: targetTagName.toLowerCase is not a function #1634

@kkmuffme

Description

@kkmuffme

TypeError: targetTagName.toLowerCase is not a function

from https://github.com/gajus/eslint-plugin-jsdoc/blame/main/src/jsdocUtils.js#L718

when using rule "jsdoc/require-property": "error"

for code like:

/**
 * @typedef {{id: string}} Something
 *
 * @return {{xyz: Something[]}}
 */
function foo( abc ) {
}

Environment

  • Node version: 20.19.x
  • ESLint version 8.57.1
  • eslint-plugin-jsdoc version: 62.0.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions