8 ms·
Prettier 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 th
by myaccountonhn 3y ago
Prettier 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.
- Mogzol 3y agoHow large are the files you're formatting? I have prettier set to format on save in vscode and even for the largest files in my codebase (>1000 lines) it formats near-instantaneously on my 2019 macbook pro. Definitely well under a second.
- tracker1 3y agoTake 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.
- ivanjermakov 3y agoI migrated to Biomejs formatting and never looked back.
- herpdyderp 3y agoNo HTML support… bummer. I’ve been looking to switch from Prettier but I haven’t yet found a viable alternative.
- taskylizard 3y agoYou might like dprint.
- conaclos 3y agoThe Biome team is currently working on CSS support. HTML is the next item on the list.
- tracker1 3y agoShould make an issue in GitHub for this if you haven't and there isn't already one.