4 ms·
Could not imagine living without Prettier. It's a code formatter. The team agrees on how we want to do formatting, and we check in our Prettier preferences, so
by rsweeney21 5y ago
Could not imagine living without Prettier. It's a code formatter. The team agrees on how we want to do formatting, and we check in our Prettier preferences, so everyone's code on the team is formatted the same automatically.
Helps keep the entire code base formatted consistently.
Prettier - Code formatter
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode https://marketplace.visualstudio.com/items?itemName=esbenp.p...
- RobertRoberts 5y agoI came here to add Prettier as well.
- ChicagoBoy11 5y agoI think this is probably the only piece of software that I can think of that we pretty much lived our entire lives without, then almost immediately after it was launched not a single person who knew about it could ever fathom not having it.
- SwiftyBug 5y agoIt even changed my personal coding style. Things I chose to do before now look ugly to me.
- zoover2020 5y agoI stopped caring about any coding style, as long as we agreed on a prettier configuration. Not caring about this saves me so much mental capacity, I would recommend it
- AlchemistCamp 5y agoI couldn't disagree more. The whole debacle around break before else caused me to avoid using them for any projects going forward: https://github.com/prettier/prettier/issues/840 https://github.com/prettier/prettier/issues/840 For JS formatting, I either use Rome or ESLint.
- JoBrad 5y agoI didn’t read all of the comments, but it seems to me that the interaction at the beginning of the thread is pretty close to how polite, respectful online conversations should be carried out. I don’t use Prettier, but this is my own choice, and if someone else likes them I certainly don’t think this thread is cause for denigrating the team or their work. Am I missing something? - The Prettier team has decided that they will not be adding new options. Since they explicitly bill themselves as an opinionated formatter, that seems reasonable to me. - There is a fork of Prettier that supports breakBeforeElse, and this fork was suggested by a member of the Prettier team as a way for the requester to get this option