Prettier
Opinionated code formatter
Prettier formats code automatically, removing debates about style. It makes decisions about formatting—line length, quotes, semicolons, indentation—so you don't have to. The opinions are opinionated, but consistency is the point. The key insight is that formatting should be automated, not discussed. Prettier makes choices, and teams accept them. Energy goes to the code, not the style guide. Multi-language support covers JavaScript, TypeScript, CSS, HTML, JSON, YAML, and more. One tool handles formatting across your project. Editor integration formats on save. Write code however you want; Prettier fixes it when you save. The workflow eliminates thinking about formatting entirely. CI integration catches unformatted code. Fail builds that haven't been formatted, ensuring consistency in the repository. The configuration is intentionally limited. You can adjust a few options, but Prettier doesn't offer fine-grained control. This limitation is a feature—it prevents style debates. For teams adopting Prettier, the transition period involves adjusting to its choices. After that, formatting simply isn't a concern anymore.