name: olore-prettier-latest description: Local prettier documentation reference (latest). Prettier code formatter documentation. Use for code formatting, configuration, CLI usage, editor integration, plugin development, and language-specific options.
prettier Documentation
Prettier code formatter documentation. Use for code formatting, configuration, CLI usage, editor integration, plugin development, and language-specific options.
Quick Reference
| File | Title | Description |
|---|---|---|
contents/api.md |
API | Programmatic API for running Prettier from Node.js (format, check, formatWithCursor, etc.) |
contents/browser.md |
Browser | Running Prettier in the browser using the standalone version without Node.js |
contents/ci.md |
Run Prettier on CI | Setting up Prettier on CI via GitHub Actions and autofix workflows |
contents/cli.md |
CLI | CLI usage: options, flags, glob patterns, and running prettier from the command line |
contents/comparison.md |
Prettier vs. Linters | How Prettier compares to linters (ESLint, TSLint, stylelint) and when to use each |
contents/configuration.md |
Configuration File | Configuration file formats and locations (.prettierrc, prettier.config.js, etc.) |
contents/editors.md |
Editor Integration | Editor integrations for VS Code, Emacs, Vim, Helix, and other editors |
contents/for-enterprise.md |
For Enterprise | Tidelift enterprise subscription support for Prettier |
contents/ignore.md |
Ignoring Code | Ignoring files with .prettierignore and ignoring code blocks with prettier-ignore comments |
contents/index.md |
What is Prettier? | Overview of Prettier: supported languages and what the formatter does |
contents/install.md |
Install | Installation instructions for npm, yarn, pnpm, and bun |
contents/integrating-with-linters.md |
Integrating with Linters | How to integrate Prettier with ESLint and other linters using eslint-config-prettier |
contents/option-philosophy.md |
Option Philosophy | Philosophy behind Prettier's minimal options and why new options are rarely added |
contents/options.md |
Options | All formatting options: print width, tab width, semicolons, quotes, trailing commas, parsers, etc. |
contents/plugins.md |
Plugins | Plugin system for adding new languages or formatting rules to Prettier |
contents/precommit.md |
Pre-commit Hook | Setting up pre-commit hooks with lint-staged, pretty-quick, or husky |
contents/rationale.md |
Rationale | Rationale behind Prettier's formatting decisions (strings, empty lines, objects, etc.) |
contents/related-projects.md |
Related Projects | ESLint/stylelint integrations, forks, and ecosystem tools that work with Prettier |
contents/sharing-configurations.md |
Sharing configurations | Creating and publishing shareable Prettier configuration npm packages |
contents/technical-details.md |
Technical Details | Technical internals: AST printing algorithm based on Wadler's "A prettier printer" |
contents/vim.md |
Vim Setup | Vim-specific setup guide for vim-prettier, Neoformat, and ALE |
contents/watching-files.md |
Watching For Changes | Watching files for changes and auto-formatting on save using onchange |
contents/webstorm.md |
WebStorm Setup | WebStorm and JetBrains IDE integration for Prettier |
contents/why-prettier.md |
Why Prettier? | Motivation for using Prettier: enforcing style guides, helping newcomers, saving time |
When to use
Use this skill when the user asks about:
- Formatting code with Prettier (CLI, API, or editor)
- Configuring Prettier options (.prettierrc, prettier.config.js, specific format options)
- Integrating Prettier with ESLint, stylelint, or other linters
- Setting up Prettier in editors (VS Code, Vim, WebStorm, Emacs)
- Installing Prettier or running it on CI
- Ignoring files or code blocks from formatting
- Writing Prettier plugins for new languages
- Setting up pre-commit hooks with Prettier
- Understanding Prettier's formatting rationale and option philosophy
How to find information
- Check Quick Reference above for the relevant file
- Read specific files from
contents/{filename}