Skip to content

Instantly share code, notes, and snippets.

@bjesuiter
Last active February 20, 2021 14:42
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 bjesuiter/97e2cc820804003090d51e9656151062 to your computer and use it in GitHub Desktop.
Save bjesuiter/97e2cc820804003090d51e9656151062 to your computer and use it in GitHub Desktop.
Bjesuiter default prettier config
# Using Yaml to be able to use comments :)
# Source Gist: https://gist.github.com/bjesuiter/97e2cc820804003090d51e9656151062
trailingComma: "es5"
printWidth: 100
tabWidth: 2
useTabs: true
singleQuote: true
bracketSpacing: true
arrowParens: "always"
semi: true
quoteProps: "consistent"
endOfLine: "auto"
# If option overrides are needed, example:
#overrides:
# - files:
# - "*.scss"
# - "*.css"
# - "*.yaml"
# options:
# singleQuote: false
module.exports = {
trailingComma: 'es5',
printWidth: 120,
tabWidth: 4,
useTabs: false,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'always',
semi: true,
quoteProps: 'consistent',
endOfLine: 'auto',
overrides: [
{
files: ['*.vue'],
options: {
tabWidth: 2,
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment