箭头函数单个参数时,vscode的prettier和vue的prettier冲突,解决办法,eslintrc.js中添加
rules: { "prettier/prettier": ["error", { singleQuote: true, parser: "flow" }] //处理箭头函数单个参数括号规则冲突 }, http://www.qishunwang.net/news_show_10688.aspx