Skip to content

Instantly share code, notes, and snippets.

@BbsonLin
Last active March 6, 2020 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BbsonLin/28f8bcd89b123a81877314cdbb441267 to your computer and use it in GitHub Desktop.
Save BbsonLin/28f8bcd89b123a81877314cdbb441267 to your computer and use it in GitHub Desktop.
{
"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
Copy link
Author

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

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

@BbsonLin
Copy link
Author

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