vue eslint 单引号报错解决

在file->preference->settings 中找到settings.json

在settings.json中加入

    "prettier.semi": false,
    "prettier.singleQuote": true

settings.json中完全设置如下

{
    "json.format.enable": false,
    "javascript.preferences.quoteStyle": "single",
    "files.autoSave": "off",
    "editor.fontSize": 14,
    "window.zoomLevel": 0.3,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "html.format.endWithNewline": true,
    "explorer.confirmDelete": false,
    "prettier.semi": false,
    "prettier.singleQuote": true,
    "typescript.updateImportsOnFileMove.enabled": "always"
}

参考博客

https://blog.csdn.net/qq_37674616/article/details/84371011

你可能感兴趣的:(vue eslint 单引号报错解决)