原因:vscode、vetur、slint规范化冲突,并且不符合ESlint规范

functineName()   左括号前没有空格报错

'space-before-function-paren': 0

vue-cil3 运行报错 --- warnings potentially fixable with the `--fix` option

分号;  报错

引号需要是单引号

以上两个问题,需要自己创建一个.prettierrc的JSON文件

"semi":false,         // 在格式化的时候不加分号
"singleQuote":true         // 将双引号转成单引号

vue-cil3 运行报错 --- warnings potentially fixable with the `--fix` option

vue-cil3 运行报错 --- warnings potentially fixable with the `--fix` option

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2021-06-23
  • 2021-08-16
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-12-11
  • 2021-09-07
  • 2022-12-23
  • 2021-04-17
相关资源
相似解决方案