An opinionated code formatter
Prettier is an opinionated code formatter
Best printer of AST I've used in a long long time. Less configuration is a big plus as well. Huge community support behind it. Battle testedCons:
Nothing for what it promises.
Big fan of the Prettier project, the team behind it, and how it has easier configuration. Wish there could be WordPress support (CIP → https://ahmda.ws/2EPreSL)Ahmad Awais ⚡ has used this product for one year.
No configuration, easy to set up, defaults everyone can agree onCons:
Harder to tell that a project is using Prettier
Allows me to focus on the code instead of how it looks. 🙌Cons:
No built-in PHP support
I absolutely love Prettier. At first, I was off-put by the fact that configuration is a second-class citizen. I quickly realized that's the whole point.Taylor Bryant has used this product for one month.
Remove need to manually format code again. Great to end code style wars in company.Cons:
Not everyone might initially like all formatting rules.
It's awesome tool which should be used in every company doing JS/TS to speed up development, and remove need to care much about code style - which will be great by automated format.Juraj Husar has used this product for one year.
Simplifies life. No longer worry about formattingCons:
Everyone on the team can be on the same page about style and focus more on good quality engineering instead of styling nitpicks. Prettier works, is fast, and is extensible. It also supports other languages and file types such as TypeScript, .graphql files, CSS, and more.Connor Elsea has used this product for one month.
Save time for formatting JS code.Cons:
Conflict with ESLint.
As a frontend engineer, the code format is very very important to me. I used ESLint at first, and have to manually format every line of code. Later I found Prettier, it really save me lots of time. However, sometimes it will conflict with specific ESLint rules, in that case, you have to manually disable some ESLint rules in .eslintrc file in order to let Prettier handle everything.Zhang Buzz has used this product for one month.
No worries about how code looks. Easily reviewing PRs, you see only meaningful changes.Cons:
I believe it's must have for any projects (that can be formatted by this tool). The best way is configuring auto formatting by using husky + lint-staged + prettier tools.Eduard Gilmutdinov has used this product for one year.
Never think about formatting againCons:
Can't write code for you
Changed the way I develop js apps foreveryamalight has used this product for one year.
Turns messy 3am w redbull code blocks into beautyCons:
I love it ! here is a demo https://twitter.com/Sapragus/status/972837020711243776Rami Debab has used this product for one day.
Turn my ugly code into a beauty!Cons:
It’s not automatically built into every code editor
It’s truly an essential for modern developers.Brandon Bayer has used this product for one year.
Has good support in editors, IDE''s and command-line.Cons:
Could extend support to more styling/markup/programming languages ;)
Using on all frontend projects. Saves our teams time by never having to discuss formatting again.Jan Killian has used this product for one year.
Achieves deterministic and robust code formatting via strong enforcement of code style opinions. A must for any JS team, small or big.Cons:
Most likely the most influential project of 2017Joar Wilk has used this product for one year.