Opinionated Code Formatter. JavaScript · TypeScript · Flow · JSX · JSON · CSS · SCSS · Less · HTML · Vue · Angular · GraphQL · Markdown · YAML · PHP




Launch Team

Render Sandboxes: a computer for every agentIsolated compute, persistent state and a real filesystem
Promoted

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.
Pros:Remove need to manually format code again. Great to end code style wars in company.
Cons:Not everyone might initially like all formatting rules.
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.
Pros:No worries about how code looks. Easily reviewing PRs, you see only meaningful changes.
Cons:Not found
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.
Pros:Save time for formatting JS code.
Cons:Conflict with ESLint.