-
-
Notifications
You must be signed in to change notification settings - Fork 163
Require that "*/" go on its own line for multiline blocks #738
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
Comments
Sounds good...I'd like to add this as a |
By the way, although /**
* Desc.
*
* */ to the misaligned: /**
* Desc.
*
*/ ...I think this is ok because the whitespace was indeed there and we have the For the proposed |
🎉 This issue has been resolved in version 34.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Confirmed that this is working exactly as I'd hoped on my repo. Thanks so much @brettz9! |
Motivation
I'd like to require that the trailing
*/
in multiline comments go on its own line:Bad:
Good:
Current behavior
The
multiline-blocks
rule distinguishes single and multiline block forms, but does not enforce that the ending*/
be on its own line for multiline blocks.Desired behavior
I'd like to enforce that the
*/
go on its own line for multiline comments.So this would be an error:
It's important to allow this for one line comments, hwoever:
/** This is a single line jsdoc comment with a fine ending. */
Alternatives considered
The
no-multi-asterisks
rule feels somewhat related but also does not enforce this. See #199 (comment)The text was updated successfully, but these errors were encountered: