An opinionated code formatter

get it
#4 Product of the WeekMarch 11, 2018

Prettier is an opinionated code formatter

Around the web


  • ChrisLead Digital Weaver

    No configuration, easy to set up, defaults everyone can agree on


    Harder to tell that a project is using Prettier

    I'm not a Javascript developer so I love that Prettier makes generally good formatting decisions for me, freeing need up to think about the code. It's easy to apply Prettier to any project I'm working on, even if other proper in the project aren't using it.

    Chris has used this product for one year.
  • Ahmad AwaisFull Stack Dev— WordPress Core Developer

    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 tested


    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 →

    Ahmad Awais has used this product for one year.


You need to become a Contributor to join the discussion - Find out how.
James LongMaker@jlongster · Founder of Shift Reset LLC
Hi Product Hunt! I started writing Prettier when I was working on another product (that I hope to launch on PH soon :)). I got so tired of formatting code and felt like it was slowing me down so much. Christopher (vjeux) joined early on and helped see it all the way through. I'm super excited with how far it's come and that it solved the problem so well! I honestly think it has helped my build my product faster. Let me know if you have any questions about the history of prettier or how it works. I won't be able to respond for a few days, I happen to be leaving for a vacation where I won't have any internet right now. But I'll respond (or vjeux will) when I get back!
Praveen Durairaj@praveenweb · Application Engineer, Hasura
We have been using Prettier at Hasura for the past two months for a few fairly large react codebases and it really solved our formatting issues. Combined with a pre-commit hook as well to ensure consistency across collaborators. One gripe initially was that few of our devs didn't like the opinionated formatting but there wasn't anything to automate styling either! You will get used to it eventually. Hope everybody embraces some form of code styling guide to improve productivity.
Ørta@orta · Head of Mobile, Artsy
All my JS projects use prettier, my blog uses prettier, I can't wait for the day when all my native code also uses prettier. Removes a whole area of discussion from code review.
Ayrton De Craene@ayrton · Code @ Product Hunt
The other day when I was writing some Ruby code I realised how much Prettier has been spoiling me. I can't see myself not using this anymore
BaptistePro@baptistedebever · Developer - Co-founder @Alkalab
Amazing product - nice job! I have been using it for a few months, and really like it!