[ESLint] error: Newline required at end of file but not found (eol-last)解决办法
使用ESLint校验Vue项目时,发现如下警告:error: Newline required at end of file but not found (eol-last)效果如下:发现网上的解决办法,就是在警告的代码后面插入一个空行,觉得这样很不好。无意间解决了,记录一下。【解决】1.把项目中有个配置文件.editorconfig,insert_final_newline=true改成false2. .eslintrc.js中取消最后该规则的校验'eol-last': 0重新编
原创
2021-11-13 20:19:55 ·
21497 阅读 ·
2 评论