prettier
Installation
SKILL.md
Prettier
Commands
| Task | Command |
|---|---|
| Format everything (write) | pnpm format:write |
| Check formatting without writing | pnpm format:check |
| Format a specific file | pnpm exec prettier -w <path> |
| Check a specific file | pnpm exec prettier -l <path> |
Default action: When asked to "format" or "run Prettier" without further qualification, run pnpm format:write.
What gets formatted
Before formatting, read the project's ignore and config files to understand scope and rules.
Use the configuration files to determine which files will be affected and what formatting rules apply (line width, quote style, parsers, plugins, per-file overrides, etc.) before running any command.