0
点赞
收藏
分享

微信扫一扫

Newline required at end of file but not found eol-last

茗越 2022-09-13 阅读 164


问题描述:

 13:22  error  Newline required at end of file but not found  eol-last

问题原因:
vue工程中编写的index.js文件中,使用“JS-CSS-HTML Formatter”插件删除了最后空白行,而通过"ESLint"工具代码检测不通过

解决方法:

快捷键 ​​f1​​,打开配置界面

Newline required at end of file but not found eol-last_解决方法


将 "end_with_newline"的值改为true

Newline required at end of file but not found eol-last_解决方法_02


注意:修改完重启vscode


举报

相关推荐

0 条评论