-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
check-line-alignment not removing whitespace before start of @param
description
#972
Comments
🎉 This issue has been resolved in version 39.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@brettz9 I believe the logic in the PR needs to be amended a bit. Something like this: * @param {string|string[]|TemplateResult|TemplateResult[]} event.detail.description -
* Notification description Gets changed into this: * @param {string|string[]|TemplateResult|TemplateResult[]} event.detail.description -
* Notification description It is subtle, but if you check right after the My opinion is that if there is a line break directly after the |
Expected behavior
I would have wanted the rule
"jsdoc/check-line-alignment": ["warn", "never"],
to remove unnecessary whitespace after the-
but before the start of the description text. See ESLint sample below.It is entirely likely that this is not a bug but a new feature request. Maybe an addition to
customSpacings
.Actual behavior
ESLint sample below shows it best.
ESLint Config
ESLint sample
Before linting
After linting with
--fix
Notice the white space here
- Fixme
which I would have thought should become- Fixme
Environment
eslint-plugin-jsdoc
version: 39.6.4The text was updated successfully, but these errors were encountered: