Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not use Prettier? Supports YAML since like 2020 - and does other languages too.


It's ungodly slow on large projects. I've been using `deno fmt` lately (despite not having any other use for deno), it reformat/checks thousands of files per second, and supports YAML too.

This says YAML support is behind an unstable flag, but I haven't been passing any flags. Works fine anyway.

https://docs.deno.com/runtime/reference/cli/fmt/


Ha, I use Deno just as a formatter also! It’s great for Markdown formatting.


The package pretty-quick speeds up prettier significantly




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: