Skip to content

Commit 68f4e5e

Browse files
Domino9697yyx990803
authored andcommitted
workflow: use prettier for vscode formatting (#207)
1 parent 584ac88 commit 68f4e5e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.vscode/settings.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
2+
// Use the project's typescript version
23
"typescript.tsdk": "node_modules/typescript/lib",
3-
"cSpell.enabledLanguageIds": [
4-
"markdown",
5-
"plaintext",
6-
"text",
7-
"yml"
8-
]
4+
5+
"cSpell.enabledLanguageIds": ["markdown", "plaintext", "text", "yml"],
6+
7+
// Use prettier to format typescript, javascript and JSON files
8+
"[typescript]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
917
}

0 commit comments

Comments
 (0)