eslint报“Too many blank lines at the end of file. Max of 0 allowed. (no-multiple-empty-lines)“错误的解决

vue启动的时候报错

oo many blank lines at the end of file. Max of 0 allowed. (no-multiple-empty-lines)

解决方案

1.文件末尾的空行太多。最大值为0不允许有多个空行。

  删除多余的空行。

2.安装 ESLint

我用的开发工具vscode,直接安装插件ESLint

 

 如果是其他的工具就使用npm install -g eslint

posted @ 2021-07-03 16:16  King-DA  阅读(1555)  评论(0编辑  收藏  举报