4 ms·
Prettier itself would feel much faster if it supported caching like other code formatters (Python's Black, Rust's rust-fmt)
by MapleWalnut 4y ago
Prettier itself would feel much faster if it supported caching like other code formatters (Python's Black, Rust's rust-fmt)
- onion2k 4y agoPrettier does support that, in the sense that you can achieve it using an official solution. https://prettier.io/docs/en/precommit.html https://prettier.io/docs/en/precommit.html It's the Unix mentality of chaining things rather than building it in to the package.
- MapleWalnut 4y agoYeah, 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.