Y
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
onion2k
1518 days ago
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.
link
MapleWalnut
1518 days ago
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.
link
It's the Unix mentality of chaining things rather than building it in to the package.