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

Incorrect param tags due to trailing commas #456

Open
cdtinney opened this issue Jan 26, 2018 · 0 comments
Open

Incorrect param tags due to trailing commas #456

cdtinney opened this issue Jan 26, 2018 · 0 comments

Comments

@cdtinney
Copy link

Trailing commas in a destructured object parameter result in an extra @param tag being added.

Expected Behavior

foo({
  bar,
}) {
  // stuff
}

becomes:

/**
 * [foo description]
 *
 * @param  {[type]} options.bar [description]
 * @return {[type]} [description]
 */
foo({
  bar,
}) {
  // stuff
}

Current Behavior

foo({
  bar,
}) {
  // stuff
}

becomes:

/**
 * [foo description]
 *
 * @param  {[type]} options.bar [description]
 * @param  {[type]} options. [description]
 * @return {[type]} [description]
 */
foo({
  bar,
}) {
  // stuff
}

Notes

Looks like the commit that introduced this is c86b180b7e4049369f0cfd6aa98f379558b6ea0d. I don't know Python :(

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

No branches or pull requests

1 participant