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

☂️ Formatter 0.9.0 #3046

Closed
17 tasks done
MichaReiser opened this issue Aug 11, 2022 · 5 comments
Closed
17 tasks done

☂️ Formatter 0.9.0 #3046

MichaReiser opened this issue Aug 11, 2022 · 5 comments
Assignees
Labels
A-Formatter Area: formatter umbrella Issue to track a collection of other issues
Milestone

Comments

@MichaReiser
Copy link
Contributor

MichaReiser commented Aug 11, 2022

Description

This is an umbrella issue for the work on the Formatter for the 0.9.0 release.

Goals

  • Rome removes unnecessary parentheses and adds parentheses to improve readability.
  • Improve Prettier compatibility of some core syntax nodes.

Tasks

@MichaReiser MichaReiser added the umbrella Issue to track a collection of other issues label Aug 11, 2022
@MichaReiser MichaReiser added this to the 0.9.0 milestone Aug 11, 2022
@ematipico ematipico added the A-Formatter Area: formatter label Aug 11, 2022
@ematipico
Copy link
Contributor

ematipico commented Aug 14, 2022

This is a follow up question after #3057.

Is there a specific reason why the "needs parentheses" information is tracked inside the formatter phase?

Have you considered some other solutions, such as a visitor approach, or even computing this information during the parsing phase and storing it inside our green tree?

I would like to know what are the implications of your decisions in the future developments

@MichaReiser
Copy link
Contributor Author

@ematipico I replied on the PR as these questions seem relevant to the implementation.

@MichaReiser
Copy link
Contributor Author

I start working on the Arrow function formatting

@MichaReiser
Copy link
Contributor Author

I'll start looking into JSX formatting tomorrow

@MichaReiser MichaReiser moved this to Done in Rome 2022 Sep 2, 2022
@IWANABETHATGUY
Copy link
Contributor

We are getting close to 90% prettier compatibility, that's awesome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter umbrella Issue to track a collection of other issues
Projects
Status: Done
Development

No branches or pull requests

3 participants