天天看点

eslint报错:Newline required at end of file but not found

eslint报错:

eslint报错:Newline required at end of file but not found

官网解释:

https://eslint.org/docs/rules/eol-last

此规则在非空文件的末尾强制执行至少一个换行符(或不存在换行符)。

在v0.16.0之前,此规则还强制文件的末尾只有一行。如果仍然需要这种行为,请考虑启用 带有和/或 没有尾随空格的no-multiple-empty-line。

代码修正:

eslint报错:Newline required at end of file but not found

继续阅读