The errors come from tslint which defines some rules on your project and check if your code matches the rules. You need to either fix the error or ignore/disable those rules.
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
More about the rules: https://palantir.github.io/tslint/rules/