Vetur会让prettier不生效,请大家注意一下
来源:2-2 代码格式化工具prettier

JokerQiu
2020-11-09
https://vuejs.github.io/vetur/formatting.html
解决方法是:
Opinionated formatter. Settings are read from .prettierrc at project root. See format at https://prettier.io/docs/en/configuration.html.
If you want to set global prettier setting, either:
- Make a .prettierrc config at your home directory
- Use the below config and do NOT include a .prettierrc in your home directory
"vetur.format.defaultFormatterOptions": {
"prettier": {
// Prettier option here
"semi": false
}
}
写回答
2回答
-
Ans217
2020-11-10
10 -
Jokcy
2020-11-09
好的,这位同学非常好,把解决方案也提供出来了!
00
相似问题