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

challenge(formatter): arrows comment #785

Merged
merged 6 commits into from Nov 21, 2023

Conversation

suxin2017
Copy link
Contributor

Summary

Fixes

js/arrows/comment.js

Test Plan

Relevant prettier diff snapshots now match and have been deleted.

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Nov 19, 2023
@Conaclos
Copy link
Member

Conaclos commented Nov 19, 2023

Hi! Thanks for your contribution :)

You have to lint and to format your code using just lint and just format.

@@ -157,6 +153,29 @@ fn handle_typecast_comment(comment: DecoratedComment<JsLanguage>) -> CommentPlac
}
}


fn handle_after_arrow_fat_arrow_comment(
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a documentation comment that explains what this function does? How it moves the comments and where

Copy link
Contributor Author

@suxin2017 suxin2017 Nov 20, 2023

Choose a reason for hiding this comment

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

Thanks for the review, I've put the comments in the code, do you think that's OK?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah it's great! thank you

suxin2017 and others added 3 commits November 21, 2023 10:35
…pression.rs

Co-authored-by: unvalley <38400669+unvalley@users.noreply.github.com>
@ematipico ematipico merged commit b08a836 into biomejs:main Nov 21, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants