workflow: use prettier for vscode formatting (#207)

This commit is contained in:
Francois Hendriks 2019-10-11 17:06:21 +02:00 committed by Evan You
parent 584ac88b54
commit 68f4e5e04d

20
.vscode/settings.json vendored
View File

@ -1,9 +1,17 @@
{
// Use the project's typescript version
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.enabledLanguageIds": [
"markdown",
"plaintext",
"text",
"yml"
]
"cSpell.enabledLanguageIds": ["markdown", "plaintext", "text", "yml"],
// Use prettier to format typescript, javascript and JSON files
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}