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

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!


That'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.


^^^ what the op said. You'll regularly seen diffs in minor versions, and even patch versions.


npx is fine, just remember not to use it for things like CI without pinning the version of Prettier (`npx prettier@2.0.1 ...`).




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

Search: