Skip to content

Commit 75e8fc6

Browse files
committed
Switch VS Code's Vue extension from Vetur to Volar
1 parent 389b445 commit 75e8fc6

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"recommendations": [
33
"matklad.rust-analyzer",
44
"dbaeumer.vscode-eslint",
5-
"octref.vetur",
5+
"johnsoncodehk.volar",
66
"formulahendry.auto-close-tag",
77
"aaron-bond.better-comments"
88
]

.vscode/settings.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,8 @@
55
"editor.formatOnPaste": true,
66
"editor.defaultFormatter": "matklad.rust-analyzer",
77
},
8-
// Web: save on format (consolidate these when https://github.com/microsoft/vscode/issues/51935 is implemented)
9-
"[typescript]": {
10-
"editor.codeActionsOnSave": {
11-
"source.fixAll.eslint": true,
12-
},
13-
"editor.formatOnSave": true,
14-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
15-
},
16-
"[javascript]": {
17-
"editor.codeActionsOnSave": {
18-
"source.fixAll.eslint": true,
19-
},
20-
"editor.formatOnSave": true,
21-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
22-
},
23-
"[vue]": {
8+
// Web: save on format
9+
"[typescript][javascript][vue]": {
2410
"editor.codeActionsOnSave": {
2511
"source.fixAll.eslint": true,
2612
},
@@ -34,14 +20,15 @@
3420
// ESLint config
3521
"eslint.format.enable": true,
3622
"eslint.workingDirectories": [
37-
"./frontend",
23+
"./frontend"
3824
],
3925
"eslint.validate": [
4026
"javascript",
4127
"typescript",
4228
],
4329
// Vue config
44-
"vetur.format.enable": false,
30+
"volar.completion.preferredAttrNameCase": "camel",
31+
"volar.completion.preferredTagNameCase": "pascal",
4532
// VS Code config
4633
"html.format.wrapLineLength": 200,
4734
"files.eol": "\n",

vetur.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)