Why is Prettier rock solid?
21–30 of 163 posts
Re: Why is Prettier rock solid?
#22Prettier isn’t terrible but compared to ocamlformat it is soooo… slow. Each time I save it takes a second or two for it to format. Ocamlformat is instant in the meanwhile.
Take a look at Biome formatter and linter. Blink of an eye fast on very large projects that prettier feels like forever on. Just don't enable the experimental or potentially breaking format options on a large existing code base. They aren't enabled by default. Deno's in the box trolling is pretty nice as well. YMMV of course.
Re: Why is Prettier rock solid?
#23Re: Why is Prettier rock solid?
#24> note that gofmt doesn't indent, which is the hard part Huh? I'm pretty sure it indents with tabs.
I suspect the author meant that gofmt doesn’t break lines, which dramatically simplifies the complexity. See https://journal.stuffwithstuff.com/2015/09/08/the-hardest-pr... for a fun, related read.
I wrote that article and I'm actually in the middle of rewriting dartfmt right now to have an entirely new internal representation.
Re: Why is Prettier rock solid?
#25Re: Why is Prettier rock solid?
#26The debate for me is now eslint —-fix or prettier. I don’t get why people need more “control”. If it breaks code, then sure, I understand the reservation but in 99% of cases, it just, “I don’t like how it breaks up my code”. Why care? At least, if you’re all using it, the diffs will be predictable and PRs can focus on what matters. //rant
Re: Why is Prettier rock solid?
#27Skimming past the capital "P", I read this as "why is prettier rock, solid" . . . and was left perplexed, as most rocks are solid.
Re: Why is Prettier rock solid?
#28Re: Why is Prettier rock solid?
#29Earlier quoted context omitted.
What’s an example of Prettier breaking code?
For example, the latest Prettier makes XHTML files invalid by changing DOCTYPE to lowercase: https://github.com/prettier/prettier/issues/15476 Prettier moves ts-ignore comments which can cause TypeScript errors: https://github.com/prettier/prettier/issues/15876 Interpreting nested CSS functions' "-" as minus and inserting a space: https://github.com/prettier/prettier/issues/15369
Re: Why is Prettier rock solid?
#30Skimming past the capital "P", I read this as "why is prettier rock, solid" . . . and was left perplexed, as most rocks are solid.