Skip to content

Instantly share code, notes, and snippets.

@qvil
Last active June 3, 2021 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qvil/0f2ce55635cf0acfda74e11f685a4491 to your computer and use it in GitHub Desktop.
Save qvil/0f2ce55635cf0acfda74e11f685a4491 to your computer and use it in GitHub Desktop.
Prettier default config.
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf"
}
@qvil
Copy link
Author

qvil commented Jun 3, 2021

Apply command to entire code

npx prettier --write "**/*.ts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment