Last active
February 20, 2021 14:42
-
-
Save bjesuiter/97e2cc820804003090d51e9656151062 to your computer and use it in GitHub Desktop.
Bjesuiter default prettier config
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
# 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 | |
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
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