mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-08 00:05:00 +00:00
Switch VS Code's Vue extension from Vetur to Volar
This commit is contained in:
parent
cbb4feba45
commit
e101d4524d
3 changed files with 6 additions and 32 deletions
2
.vscode/extensions.json
vendored
2
.vscode/extensions.json
vendored
|
@ -2,7 +2,7 @@
|
|||
"recommendations": [
|
||||
"matklad.rust-analyzer",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"octref.vetur",
|
||||
"johnsoncodehk.volar",
|
||||
"formulahendry.auto-close-tag",
|
||||
"aaron-bond.better-comments"
|
||||
]
|
||||
|
|
23
.vscode/settings.json
vendored
23
.vscode/settings.json
vendored
|
@ -5,22 +5,8 @@
|
|||
"editor.formatOnPaste": true,
|
||||
"editor.defaultFormatter": "matklad.rust-analyzer",
|
||||
},
|
||||
// Web: save on format (consolidate these when https://github.com/microsoft/vscode/issues/51935 is implemented)
|
||||
"[typescript]": {
|
||||
"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]": {
|
||||
// Web: save on format
|
||||
"[typescript][javascript][vue]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true,
|
||||
},
|
||||
|
@ -34,14 +20,15 @@
|
|||
// ESLint config
|
||||
"eslint.format.enable": true,
|
||||
"eslint.workingDirectories": [
|
||||
"./frontend",
|
||||
"./frontend"
|
||||
],
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"typescript",
|
||||
],
|
||||
// Vue config
|
||||
"vetur.format.enable": false,
|
||||
"volar.completion.preferredAttrNameCase": "camel",
|
||||
"volar.completion.preferredTagNameCase": "pascal",
|
||||
// VS Code config
|
||||
"html.format.wrapLineLength": 200,
|
||||
"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…
Add table
Add a link
Reference in a new issue