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

.prettierrc.json — first linesJSON
{
  "$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

Size
331 B (331 bytes)
MIME type
application/json
SHA-256
a9cdff4d8e73b4e2831f2d07eca2a3346b8841dd6d65044cc6b4c0d467011c9e
MD5
1acb1e08b56590f075739cd1a241bb0b

Download from the command line

curl -L -o .prettierrc.json https://files.samplefiles.com/config/prettierrc/.prettierrc.json

Or check the download in your browser with the checksum calculator.