如何在 vscode 工作区中禁用 vetur linting?
How do I disable vetur linting in vscode workspace?
我有一个 VS 代码工作区,但 Vetur 抛出错误,因为我的 Vue 文件夹不在根目录下,因此它认为它是一个 Vue 2 项目。如何禁用 Vetur linting?
我将此添加到我的 .vscode/settings.json
{
"vetur.validation.template": false,
"vetur.validation.script": false,
"vetur.validation.style": false,
}
如文档中所述
https://vuejs.github.io/vetur/linting-error.html#error-checking
但是它给出了消息
This setting cannot be applied in this workspace. It will be applied when you open the containing workspace folder directly.
这有点违背目的
事实证明,您只需将其添加到全局 vscode 设置中即可
F1>Preferences:Open Settings (JSON)
粘贴
"vetur.validation.template": false,
"vetur.validation.script": false,
"vetur.validation.style": false,
我有一个 VS 代码工作区,但 Vetur 抛出错误,因为我的 Vue 文件夹不在根目录下,因此它认为它是一个 Vue 2 项目。如何禁用 Vetur linting?
我将此添加到我的 .vscode/settings.json
{
"vetur.validation.template": false,
"vetur.validation.script": false,
"vetur.validation.style": false,
}
如文档中所述
https://vuejs.github.io/vetur/linting-error.html#error-checking
但是它给出了消息
This setting cannot be applied in this workspace. It will be applied when you open the containing workspace folder directly.
这有点违背目的
事实证明,您只需将其添加到全局 vscode 设置中即可
F1>Preferences:Open Settings (JSON)
粘贴
"vetur.validation.template": false,
"vetur.validation.script": false,
"vetur.validation.style": false,