Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"vetur.validation.template": false,
"vetur.completion.scaffoldSnippetSources": {
"workspace": "💼",
"user": "🗒️",
"vetur": ""
},
"eslint.validate": ["vue", "html", "javascript"],
"prettier.disableLanguages": [],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
@BbsonLin

This comment has been minimized.

Copy link
Owner Author

@BbsonLin BbsonLin commented Jun 16, 2019

還須先將 VSCode 上的
"prettier.disableLanguages": ["vue"] 改成 -> "prettier.disableLanguages": []

Ref: https://www.paultsai.com/vscode-prettier-vue/

@BbsonLin

This comment has been minimized.

Copy link
Owner Author

@BbsonLin BbsonLin commented Aug 8, 2019

幾個文件設定

.prettierrc

{
    "semi": false,
    "singleQuote": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment