Repository navigation
Replies: 2 comments 4 replies
|
aside from the different parens handling which we chose not to do as many people didn't like those extra ones, what else is wrong here? I don't see the types on visibleItems was that removed? for the paren handling, we could introduce a flat to format jsx with parens like prettier does for jsx typically. Unless we just wanna handle it exactly how it's done for JSX. |
|
we're going to switch everything to be inline with prettier, so that means parens will be used. stay tuned. I'm also working on a new experiment prettier plugin, based on prettier so we don't build one from scratch like we have been and hopefully it will significantly reduce the amount of issue. but regardless, our goal is to be on parity as much as possible with prettier (3.9.6) we'll keep the js comments in templates though. |
Uh oh!
There was an error while loading. Please reload this page.
Nice work on addressing my prior but tickets, team. Question for you folks.
I've got Prettier set up according to the guide on the TSRX page. I thought that if I changed some
.tsxfiles to.tsrxfiles with no changes to their code, then Prettier would not change their formatting. (Otherwise when I convert my first function to use@{ ... }, code reviewers will be distracted by formatting changes in any other components in the file.)Here's an example where the formatting was different. Would we agree this is a bug? And, if so, should I file it in tsrx-org or prettier?
All reactions