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

Fix converting single line JSDoc comment to ESTree #6

Merged
merged 4 commits into from Jan 26, 2022

Conversation

macku
Copy link
Contributor

@macku macku commented Jan 17, 2022

This is a proposal for a fix of the issue related to the issue in gajus/eslint-plugin-jsdoc#831 eslint-plugin-jsdoc project.

The commentParserToESTree doesn't support a single line JSDoc comments. I was trying to fix that and add missing unit tests.

@brettz9
Copy link
Contributor

brettz9 commented Jan 17, 2022

Looking good to me. Could we also see about testing the following:

/** @type {string}
*/

(And maybe a test for the following too though I assume this one is ok)

/**
@type {string} */

… when no description present)

Also:
1. does further work on single-line related fix
2. adds tests
@brettz9
Copy link
Contributor

brettz9 commented Jan 26, 2022

Thanks for the very helpful work! I got it working hopefully all is intended with the desired test cases and added some docs, tests, an unrelated fix, and minor feature enhancements as well for the next version--now published.

@macku
Copy link
Contributor Author

macku commented Jan 26, 2022

Awesome! Thanks for taking over the work since I didn't manage to find time to work on that fix :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants