Prettier Config Generator
Generate a Prettier configuration file — JSON (.prettierrc.json), YAML (.prettierrc.yaml), a JS module (prettier.config.mjs/cjs), or a package.json “prettier” key — from core options (printWidth, tabWidth, quotes, semicolons, trailing commas), JSX and Markdown/HTML options, and per-language overrides.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Output Format
json, yaml, esm, cjs, pkg printWidth
20 <= x <= 200tabWidth
1 <= x <= 16useTabs — indent with tabs instead of spaces
semi — print semicolons at end of statements
singleQuote — use single quotes instead of double
quoteProps
as-needed, consistent, preserve trailingComma
all, es5, none bracketSpacing — spaces inside object literals { foo }
bracketSameLine — keep > of multi-line HTML/JSX on last line
arrowParens
always, avoid endOfLine
lf, crlf, cr, auto jsxSingleQuote — use single quotes in JSX attributes
singleAttributePerLine — one HTML/JSX attribute per line
proseWrap
preserve, always, never htmlWhitespaceSensitivity
css, strict, ignore Markdown (*.md, *.mdx) — proseWrap: always, printWidth: 100
HTML (*.html) — printWidth: 120, singleAttributePerLine: true
YAML (*.yml, *.yaml) — tabWidth: 2, singleQuote: false
JSON (*.json) — printWidth: 200, trailingComma: none
Include descriptive header comment (JS/YAML formats only)
Also generate a .prettierignore template
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.