Newline required at end of file but not found
遇到一个很奇怪的报错
居然要在/style后敲个回车,以空格结尾
像这样,13行不能没有
另外,还有一个奇怪的报错, Unexpected tab character
解决方法
在eslint的配置文件中(.eslintrc)rules项中添加一行:"no-tabs":"off",如下图:
挺好的一篇博客
https://blog.csdn.net/Lucky_LXG/article/details/58605664