Switch VS Code's Vue extension from Vetur to Volar
This commit is contained in:
parent
cbb4feba45
commit
e101d4524d
|
|
@ -2,7 +2,7 @@
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"matklad.rust-analyzer",
|
"matklad.rust-analyzer",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"octref.vetur",
|
"johnsoncodehk.volar",
|
||||||
"formulahendry.auto-close-tag",
|
"formulahendry.auto-close-tag",
|
||||||
"aaron-bond.better-comments"
|
"aaron-bond.better-comments"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,8 @@
|
||||||
"editor.formatOnPaste": true,
|
"editor.formatOnPaste": true,
|
||||||
"editor.defaultFormatter": "matklad.rust-analyzer",
|
"editor.defaultFormatter": "matklad.rust-analyzer",
|
||||||
},
|
},
|
||||||
// Web: save on format (consolidate these when https://github.com/microsoft/vscode/issues/51935 is implemented)
|
// Web: save on format
|
||||||
"[typescript]": {
|
"[typescript][javascript][vue]": {
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll.eslint": true,
|
|
||||||
},
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
||||||
},
|
|
||||||
"[javascript]": {
|
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll.eslint": true,
|
|
||||||
},
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
||||||
},
|
|
||||||
"[vue]": {
|
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true,
|
"source.fixAll.eslint": true,
|
||||||
},
|
},
|
||||||
|
|
@ -34,14 +20,15 @@
|
||||||
// ESLint config
|
// ESLint config
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
"eslint.workingDirectories": [
|
"eslint.workingDirectories": [
|
||||||
"./frontend",
|
"./frontend"
|
||||||
],
|
],
|
||||||
"eslint.validate": [
|
"eslint.validate": [
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
],
|
],
|
||||||
// Vue config
|
// Vue config
|
||||||
"vetur.format.enable": false,
|
"volar.completion.preferredAttrNameCase": "camel",
|
||||||
|
"volar.completion.preferredTagNameCase": "pascal",
|
||||||
// VS Code config
|
// VS Code config
|
||||||
"html.format.wrapLineLength": 200,
|
"html.format.wrapLineLength": 200,
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
// vetur.config.js
|
|
||||||
/** @type {import('vls').VeturConfig} */
|
|
||||||
module.exports = {
|
|
||||||
// **optional** default: `{}`
|
|
||||||
// override vscode settings
|
|
||||||
// Notice: It only affects the settings used by Vetur.
|
|
||||||
settings: {
|
|
||||||
"vetur.useWorkspaceDependencies": true,
|
|
||||||
},
|
|
||||||
// **optional** default: `[{ root: './' }]`
|
|
||||||
// support monorepos
|
|
||||||
projects: ['./frontend']
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue