Created
May 24, 2022 07:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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