← All datasets

Prettier Config JSON Dataset

Configuration · ~14 options

Standard Prettier configuration with per-file overrides for JSON, Markdown, and CSS. Free to use, no attribution required — copy it, download it, or open it directly in the JSON Formatter. Runs entirely in your browser.

#prettier#formatter#config#linting

Fields

printWidthnumber
tabWidthnumber
useTabsboolean
semiboolean
singleQuoteboolean
quotePropsstring
jsxSingleQuoteboolean
trailingCommastring
bracketSpacingboolean
bracketSameLineboolean
arrowParensstring
endOfLinestring
proseWrapstring
htmlWhitespaceSensitivitystring
embeddedLanguageFormattingstring
overridesarray

Common uses

  • Bootstrapping new projects
  • Standardizing config across a team
  • CI/CD pipeline setup
  • Editor and tooling defaults
{
  "printWidth": 100,
  "tabWidth": 2,
  "useTabs": false,
  "semi": true,
  "singleQuote": false,
  "quoteProps": "as-needed",
  "jsxSingleQuote": false,
  "trailingComma": "es5",
  "bracketSpacing": true,
  "bracketSameLine": false,
  "arrowParens": "always",
  "endOfLine": "lf",
  "proseWrap": "preserve",
  "htmlWhitespaceSensitivity": "css",
  "embeddedLanguageFormatting": "auto",
  "overrides": [
    {
      "files": "*.json",
      "options": {
        "printWidth": 120
      }
    },
    {
      "files": "*.md",
      "options": {
        "proseWrap": "always",
        "printWidth": 80
      }
    },
    {
      "files": [
        "*.css",
        "*.scss"
      ],
      "options": {
        "singleQuote": false
      }
    }
  ]
}

Related datasets

⚙️ TypeScript Config🔍 ESLint Config📦 package.json Template

Related tools

JSON FormatterJSON DiffJSON to TypeScript