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): fix typescript declarations and soft wrap index signatures #794

Merged
merged 7 commits into from Nov 19, 2023

Conversation

Yash-Singh1
Copy link
Contributor

Summary

This PR fixes comments in declare statements to be after the keyword of the declaration statement except for in global statements. I also found some cases that were not included in the prettier tests so I added onto the test cases. I can remove those if it makes the prettier similarity test cases less authentic.

Test Plan

This increases index signature similarity and fixes typescript declarations test case.

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Nov 19, 2023
@Yash-Singh1 Yash-Singh1 changed the title fix: typescript declare challenge(formatter): fix typescript declarations and soft wrap index signatures Nov 19, 2023
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

The code looks good, I left some suggestion to make it more clean

crates/biome_js_formatter/src/comments.rs Outdated Show resolved Hide resolved
crates/biome_js_formatter/src/comments.rs Outdated Show resolved Hide resolved
crates/biome_js_formatter/src/comments.rs Outdated Show resolved Hide resolved
crates/biome_js_formatter/src/comments.rs Outdated Show resolved Hide resolved
crates/biome_js_formatter/src/comments.rs Outdated Show resolved Hide resolved
@Conaclos Conaclos merged commit 74784a4 into biomejs:main Nov 19, 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

3 participants