signed

QiShunwang

“诚信为本、客户至上”

解决Replace `(valid)` with `valid`eslintprettier/prettier

2021/1/28 12:23:02   来源:

在这里插入图片描述

箭头函数单个参数时,vscode的prettier和vue的prettier冲突,解决办法,eslintrc.js中添加

rules: {
    "prettier/prettier": ["error", { singleQuote: true, parser: "flow" }] //处理箭头函数单个参数括号规则冲突
  },