新建vue项目终端显示vue error Replace `·:` with `:·`报错或换行报错
显示:vue errorReplace ·: 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[*]cr
·
显示:
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 再重启项目就解决了
更多推荐
已为社区贡献1条内容
所有评论(0)