Last active
December 16, 2020 06:26
-
-
Save noopurphalak/2ec180a3a0f7f62ec7b093a7a58cb0e1 to your computer and use it in GitHub Desktop.
Prettier configuration for Vue projects
This file contains hidden or 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
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": false, | |
"singleQuote": true, | |
"trailingComma": "all", | |
"bracketSpacing": true, | |
"requirePragma": false, | |
"arrowParens": "always", | |
"jsxBracketSameLine": true, | |
"overrides": [ | |
{ | |
"files": "*.vue", | |
"options": { | |
"parser": "vue", | |
"vueIndentScriptAndStyle": true, | |
"jsxBracketSameLine": true | |
} | |
}, | |
{ | |
"files": "*.css", | |
"options": { | |
"parser": "css", | |
"printWidth": 120, | |
"singleQuote": false, | |
"semi": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment