Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

refactor(rome_js_formatter): Part 7: Use comments API in JS node formatters #3245

Merged
merged 7 commits into from
Sep 22, 2022

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Sep 16, 2022

Summary

This PR is part of the comments refactor #3227.

It is (almost) the final piece. It makes the necessary changes to the various formatters for all the JS syntaxes to use the new API, and correctly place comments. It has sometimes been necessary to fix small formatting issues of individual nodes to match Prettier's output.

Test Plan

Average compatibility: 86.15 -> 88.36
Compatible lines: 84.93 -> 89.34

@MichaReiser MichaReiser added the A-Formatter Area: formatter label Sep 16, 2022
@MichaReiser MichaReiser added this to the 0.10.0 milestone Sep 16, 2022
@MichaReiser MichaReiser force-pushed the refactor/js-comments-formatting branch from fdaf608 to ef9db3e Compare September 16, 2022 15:24
@MichaReiser MichaReiser requested a review from a team September 16, 2022 15:24
@MichaReiser MichaReiser force-pushed the refactor/js-syntax-comments branch from 5839e85 to e1b3883 Compare September 16, 2022 15:24
@MichaReiser MichaReiser force-pushed the refactor/js-syntax-comments branch from a304196 to c2038ef Compare September 20, 2022 11:15
@MichaReiser MichaReiser force-pushed the refactor/js-comments-formatting branch from 37f0c09 to 1837c70 Compare September 20, 2022 11:23
@MichaReiser MichaReiser force-pushed the refactor/js-syntax-comments branch from c2038ef to 9f33f98 Compare September 20, 2022 11:28
Base automatically changed from refactor/js-comments-formatting to refactor/comments September 20, 2022 16:28
@MichaReiser MichaReiser merged commit 9666e89 into refactor/comments Sep 22, 2022
@MichaReiser MichaReiser deleted the refactor/js-syntax-comments branch September 22, 2022 06:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant