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
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