Skip to content

fix: parameter comment function attribute removal#2412

Merged
czosel merged 3 commits into
prettier:mainfrom
LordSalmon:fix-parameter-comment-function-attribute-removal
Jan 20, 2025
Merged

fix: parameter comment function attribute removal#2412
czosel merged 3 commits into
prettier:mainfrom
LordSalmon:fix-parameter-comment-function-attribute-removal

Conversation

@LordSalmon

@LordSalmon LordSalmon commented Jan 8, 2025

Copy link
Copy Markdown
Contributor

The title may sound a bit confusing, but what essentially happened was a function attribute deletion on formatting when one of the parameters has a line comment afterward its declaration.

An example of said behaviour can be seen here

@czosel czosel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for contributing @LordSalmon!

@czosel czosel merged commit c5c56ff into prettier:main Jan 20, 2025
@czosel

czosel commented Jan 20, 2025

Copy link
Copy Markdown
Collaborator

Released in v0.22.4 🎉

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.

3 participants