Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: deconstructed parameters not supported #352

Closed
sneakypete81 opened this issue Jul 22, 2019 · 3 comments
Closed

Regression: deconstructed parameters not supported #352

sneakypete81 opened this issue Jul 22, 2019 · 3 comments
Labels

Comments

@sneakypete81
Copy link

This regression was introduced in v15.5.4.

Steps to Reproduce

Run eslint on the following example adapted from https://stackoverflow.com/a/45788619:

/**
 * Assign the project to an employee.
 *
 * @param {object} employee - The employee who is responsible for the project.
 * @param {string} employee.name - The name of the employee.
 * @param {string} employee.department - The employee's department.
 */
export function assign({name, department}) {
  // ...
}

Expected Result (v15.5.3)

Pass without error.

Actual Result (v15.5.4)

filename.js 1:1  error  Missing JSDoc @param "<ObjectPattern>" declaration  jsdoc/require-param
@sneakypete81 sneakypete81 changed the title Regression: deconstucted parameters not supported Regression: deconstructed parameters not supported Jul 22, 2019
@gajus
Copy link
Owner

gajus commented Jul 22, 2019

🎉 This issue has been resolved in version 15.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Jul 22, 2019
@sneakypete81
Copy link
Author

Thanks, that's fixed it!

l1bbcsg pushed a commit to interfaced/eslint-plugin-jsdoc that referenced this issue Aug 8, 2019
@gajus
Copy link
Owner

gajus commented Sep 1, 2019

🎉 This issue has been resolved in version 15.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants