1.如图
.http://eslint.org/docs/rules/eol-last Newline required at end of file but not found
You may use special comments to disable some warnings.
use // eslint-disable-next-line to ignore the next line.
use /* eslint-dissable */ to ignore all warnings in a file.
提供个简单粗暴的方法:
在webpack.base.conf.js 中查找eslint的loader,并在test后面的正则中修改文件后缀,修改为不存在的文件类型,ok。
不过这样子eslint的所有规则都匹配不到了,如果需要用到部分的eslint语法规范的话,不建议用这种方法。