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

vue启动的时候报错

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

问题分析:

解决方案

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

  删除多余的空行。

2.安装 ESLint

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

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

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