Hacker News new | ask | show | jobs
by MapleWalnut 1518 days ago
Prettier itself would feel much faster if it supported caching like other code formatters (Python's Black, Rust's rust-fmt)
1 comments

Prettier does support that, in the sense that you can achieve it using an official solution. https://prettier.io/docs/en/precommit.html

It's the Unix mentality of chaining things rather than building it in to the package.

Yeah, precommit isn’t my favorite thing out of personal preference. So it’s a shame prettier doesn’t have built in caching like other tools in the space.