Config Files · 1 file
Sample Prettier Config File
Prettier config files set code-formatting options. Our sample is realistic and valid for its tool, with fake hosts and secrets.
Prettier config · 331 B
Prettier config
A .prettierrc.json with print width, quotes, trailing commas and per-file overrides for Markdown and YAML. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
{
"$schema": "https://json.schemastore.org/prettierrc",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"arrowParens": "always",
"overrides": [
{ "files": "*.md", "options": { "proseWrap": "always" } },
{ "files": ["*.yml", "*.yaml"], "options": { "singleQuote": false } }
]
}File details
Download from the command line
curl -L -o .prettierrc.json https://files.samplefiles.com/config/prettierrc/.prettierrc.jsonwget https://files.samplefiles.com/config/prettierrc/.prettierrc.jsonhttps://files.samplefiles.com/config/prettierrc/.prettierrc.jsonprintf '%s %s\n' a9cdff4d8e73b4e2831f2d07eca2a3346b8841dd6d65044cc6b4c0d467011c9e .prettierrc.json | shasum -a 256 -cOr check the download in your browser with the checksum calculator.