Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Commands
Prettier
Frontend
Prettier Commands
Opinionated code formatter.
All Prettier pages
prettier --write and --check: format files from the command line
Format a project with npx prettier . --write, or fail CI on unformatted files with npx prettier . --check. Configure it with .prettierrc and .prettierignore.
Esc