Prettier
An opinionated formatter that settles code style debates
![]()
What it is
Prettier does not patch the layout you typed. It parses the code and prints it again from scratch to fit a line width, so the same code comes out alike no matter how it was arranged before.
Key features
- Editor plugins: Format on save in VS Code, WebStorm and others
- Check mode: Use --check in CI to find files somebody forgot
- Ignore rules: Keep a hand-made layout with .prettierignore or a comment
- Language plugins: Add support for PHP, Ruby, XML and more
Who it's for
The relief is clearest in a project with messy formatting or a team using different editors. The first run touches many files, so put it in a separate commit to keep history readable. It does not look for bugs, which is still a job for ESLint, and people who dislike its style will find few settings to change. It is free to use.
Dev Tools
- TablePlus — A fast native app for browsing and editing databases
- Vitest — A unit test framework that shares your Vite config
- Cypress — End-to-end web testing you can replay step by step
- ESLint — A linter that finds problems in JavaScript without running it
- GitBook — A docs platform with a visual editor and Git sync
- Jest — A JavaScript test framework with mocks and snapshots built in