-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
match-description
fails with a @template
using a complex default value
#1304
Comments
Sorry about that... |
🎉 This issue has been resolved in version 50.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
In the absence of a proper parser, I've amended @es-joy/jsdoccomment to grab the last closing bracket if a starting one is found, and treat that as the end of the "name" portion, with the rest as the "description". That should fix this particular issue, but we should really switch to a proper parser. |
Thank you for the super fast fix! |
Expected behavior
I expect the rule
match-description
do detect correctly the start of the description.Actual behavior
The rule
match-description
fails to detect the description on a@template
using a complex default value. Note thatrequire-hyphen-before-param-description
fails as well, but I suppose it's linked.ESLint Config
Full config available here.
ESLint sample
Autofix of
require-hyphen-before-param-description
will add the hyphen afterT[K]
.Environment
eslint-plugin-jsdoc
version: 48.10.2The text was updated successfully, but these errors were encountered: