Skip to content

Error when using ignored values in destructuring assignments #716

@dermuecke

Description

@dermuecke

There is an error when using ignored values in destructuring assignments.

Ignoring some returned values (MDN)

Expected behavior

No error expected

Actual behavior

TypeError: Cannot read property 'type' of null
[...] 
in eslint-plugin-jsdoc/dist/jsdocUtils.js:217:29

Example

/**
 * @param b
 */
const foo = ([, b]) => b;

Environment

  • Node version: 14.15.5
  • ESLint version: 6.8.0
  • eslint-plugin-jsdoc version: 32.3.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions