4 ms·
finally you can run `npx prettier --write .` and get a folder formatted without any installation or configuration. This is a great decision. Congratulations on
by msoad 7y ago
finally you can run `npx prettier --write .` and get a folder formatted without any installation or configuration. This is a great decision. Congratulations on the release team!
- mnutt 7y agoThat's probably useful in some cases but I'd still recommend pinning the version, since different versions of prettier format code differently and different team members will end up with conflicting changes.
- mceachen 7y ago^^^ what the op said. You'll regularly seen diffs in minor versions, and even patch versions.
- thorn0x 7y agonpx is fine, just remember not to use it for things like CI without pinning the version of Prettier (`npx prettier@2.0.1 ...`).