The case for and against. What Prettier does well, and when it costs too much.
For. What works in its favour.
- Completely free and open source.
- Eliminates style debates in a team.
- Easy integration in pre-commit and CI/CD.
- Full multi-language support.
- Opinionated formatting = less configuration.
- You want a single style rule applied automatically.
- You work on JavaScript/TypeScript in a team.
Against. What to plan for.
- Little flexibility if you have strong style preferences.
- Can reformat existing code unexpectedly.
- Requires team discipline to adopt.
- You don't need formatting automation.
- Your team has strong style conventions: Prettier is opinionated and will reformat your code completely.
