Prettier
Prettier is an opinionated code formatter. It removes all original styling and ensures that all outputted code conforms to a consistent style.
Use cases
- Automatically format code on save
- Format code in a CI/CD pipeline
- Format code in a pre-commit hook
Reference of usage in our organization
Prettier is used in several TypeScript projects in combination with ESLint:
https://github.com/search?q=org%3Apagopa+%22\%22prettier\%22%22+path%3A**%2Fpackage.json&type=code