Prettier is a formatter for CSS, SCSS, JavaScript, JSON, Markdown, TypeScript, GraphQL and YAML. You can enable the Prettier formatter with:Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.

Auto Enabling
Prettier will be auto-enabled if any TypeScript, YAML, CSS, PostCSS, Sass, HTML, Markdown, JSON, JavaScript, GraphQL or Prettier_supported_configs files are present.Settings
Prettier supports the following config files:.prettierrc.prettierrc.json.prettierrc.yml.prettierrc.yaml.prettierrc.json5.prettierrc.js.prettierrc.cjs.prettierrc.mjsprettier.config.jsprettier.config.cjsprettier.config.mjs.prettierrc.toml.prettierignore
.trunk/configs and trunk check will still find them. See Moving Linters for more info.
Usage Notes
By default, Trunk uses Prettier to autoformat many languages/config formats, including markdown. To line wrap within markdown, you need to set the following in your Prettier config.prettierrc.yaml, etc.
printWidth to your liking.
Links
- Prettier site
- Prettier Trunk Code Quality integration source
- Trunk Code Quality’s open source plugins repo