最佳答案
错误来自 tslint,它为您的项目定义了一些规则,并检查您的代码是否符合这些规则。您需要修复错误或忽略/禁用这些规则。
file should end with a newline
You can ignore this rule on
tslint.json
by adding this on therules
object property"eofline": false
-
trailing whitespace
You can ignore this rule on
tslint.json
by adding this on therules
object property"no-trailing-whitespace": false
有关规则的更多信息:https://palantir.github.io/tslint/rules/
关于angular2,文件应该以换行符和尾随空格结尾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40139566/