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

fix(rome_js_formatter): indentation before arrow fn is JSX #2793

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

ematipico
Copy link
Contributor

Summary

This PR pushes two changes:

  • fixes a small indentation bug of the arrow functions inside JSX attributes
  • formats the the JSX files we have inside the playground

This gives us a sense of how the JSX formatting is, and I can see that, apart some some differences, we can say that is stable enough!

Test Plan

Added a new test for effects and update the current snapshots. Checked that the result is what we want

PR

File Based Average Prettier Similarity: 76.50%
Line Based Average Prettier Similarity: 72.00%

main
File Based Average Prettier Similarity: 76.47%
Line Based Average Prettier Similarity: 71.99%

@ematipico ematipico requested review from leops and yassere June 29, 2022 10:05
@ematipico ematipico temporarily deployed to aws June 29, 2022 10:05 Inactive
@github-actions
Copy link

github-actions bot commented Jun 29, 2022

@cloudflare-pages
Copy link

cloudflare-pages bot commented Jun 29, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4003b83
Status: ✅  Deploy successful!
Preview URL: https://10115b0f.tools-8rn.pages.dev
Branch Preview URL: https://fix-indentation-before-arrow.tools-8rn.pages.dev

View logs

@ematipico ematipico force-pushed the fix/indentation-before-arrow-fn branch from fa932ca to 4003b83 Compare June 29, 2022 10:43
@ematipico ematipico temporarily deployed to aws June 29, 2022 10:43 Inactive
Copy link
Contributor

@leops leops left a comment

Choose a reason for hiding this comment

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

I guess both changes look good, although having them in a single PR is little weird since these are quite loosely related

@ematipico ematipico merged commit 7cbf7a5 into main Jun 29, 2022
@ematipico ematipico deleted the fix/indentation-before-arrow-fn branch June 29, 2022 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants