vscode格式化和eslint格式冲突

在项目根目录创建:
.prettierrc.json文件

{

 "semi": false,// 取参末尾的分号。

“singleQuote”: true,// 默认单引号,
“arenthesis”: true// 为函数名和括号之间加空格
}

发布了46 篇原创文章 · 获赞 7 · 访问量 4528

猜你喜欢

转载自blog.csdn.net/weixin_44343449/article/details/102874099
今日推荐