Last active
March 6, 2020 03:36
-
-
Save BbsonLin/28f8bcd89b123a81877314cdbb441267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
幾個文件設定
.prettierrc
{
"semi": false,
"singleQuote": true
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
還須先將 VSCode 上的
"prettier.disableLanguages": ["vue"]
改成 ->"prettier.disableLanguages": []
Ref: https://www.paultsai.com/vscode-prettier-vue/