You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
FYI, our formatting architecture is different from prettier's:
By default they always remove parenthesis and they have a function that tells the IR to not remove them.
We format by node, they use a different strategy. Which means that check of parenthesis in our case must be done on node level, no need to recreate prettier's function.
Prettier uses an exhaustive heuristic of when it should insert parentheses or not. Rome should implement a similar heuristic.
https://github.com/prettier/prettier/blob/6d02cd9650be29d1b11ab6ff1442eac4f5415c06/src/language-js/needs-parens.js#L20-L793
Relevant test cases with differences:
The text was updated successfully, but these errors were encountered: