Skip to content

Instantly share code, notes, and snippets.

@sergiocarneiro
Created May 24, 2022 07:09
Show Gist options
  • Save sergiocarneiro/6e0c60d05aac22f5bccdd9b03566dd66 to your computer and use it in GitHub Desktop.
Save sergiocarneiro/6e0c60d05aac22f5bccdd9b03566dd66 to your computer and use it in GitHub Desktop.
A complete Prettier configuration file with the default options, in the order as they appear in the official docs: https://prettier.io/docs/en/options.html.
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
// You'll probably want to omit these properties:
// "rangeStart": 0,
// "rangeEnd": Infinity,
// "parser": null, // Prettier automatically infers the parser from the input file path, so you shouldn’t have to change this setting.
// "requirePragma": false,
// "insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment