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

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

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

'space-before-function-paren': 0

分号;  报错

引号需要是单引号

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

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

猜你喜欢

转载自blog.csdn.net/weixin_41786574/article/details/104056149