Earlier quoted context omitted.
What do you mean by "backwards"?
The "diff" appears to be backwards (it's subtracting what prettier would emit, and adding back the original).
$20k bounty was claimed
21–30 of 345 posts
Re: $20k bounty was claimed
#22That's interesting. I've been using "deno fmt" as of late and it's been fine for me. https://docs.deno.com/runtime/manual/tools/formatter
Re: $20k bounty was claimed
#23Re: $20k bounty was claimed
#24I'm still salty that all my eslint plugins decided to remove perfectly fine linters in lieu of Prettier. I find Prettier to be way too heavy handed and hard to reason about, and yet another tool that I never asked for...
But that's the purpose of such tools: to stop endless debates about style.
Re: $20k bounty was claimed
#25> One question you are probably wondering is why would the Prettier team fund another project!? In practice, Prettier has been the dominant code formatter for JavaScript and as a result of a lack of competition, there has been little incentive to push on performance and fix various edge cases. I was indeed wondering that but the answer doesn't really answer the question for me. Why not set a bounty to improve Prettie…
Less "the team" per se, and more vjeux, I think.
Re: $20k bounty was claimed
#26Speed is always welcome, but I just wish prettier was a little less opinionated. Specifically around line length, it will just not leave my formatting alone. I find prettier formatted code much less readable than unformatted code, and this isn't a problem I have with other code formatters like rustfmt.
It treats new lines as significant in a lot of its formatting
Re: $20k bounty was claimed
#27Re: $20k bounty was claimed
#28> By matching all the tests, the Biome project also found a lot of bugs and questionable decisions in Prettier that we will be able to improve upon.
For me, this means that they have another implementation for sanity checking their own.
Re: $20k bounty was claimed
#29Re: $20k bounty was claimed
#30I feel like people complaining about Prettier being "heavily opinionated" are missing the point. Perhaps I'm biased by my decade of using Go, but not having to worry about superfluous stylistic choices is a welcome reduction in cognitive load. (Up to a point I guess, e.g. I'd never put up with K&R-style newline opening brackets).
Edit: See a contrived example of something gofmt doesn't touch (the behavior I want): https://go.dev/play/p/cKMKnFwT8tq