显示:
vue error Replace ·: with

✖ 1 problem (1 error, 0 warnings) 1 error and 0 warnings potentially fixable with the --fix opti
换行报错等问题

解决方法:
1下载.editorconfig插件 并在vue项目中创建.editorconfig文件
2.
	root = true
	[*]
	crlf = lf
	insert_final_newline = true

将上面这段代码复制粘贴进.editorconfig中
3.在vue项目终端 输入执行 npm run lint --fix
4.在.eslintrc.js 文件中的rules中添加 “prettier/prettier”: “off”
5.重启vscod 再重启项目就解决了

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐