angular cli lint错误导出在另一个文件上

Par*_*osh 1 tslint angular-cli angular

我正在为angular2项目使用angular cli.虽然我使用lint命令进行linting-and-formatting-code,如下所示

ng lint
Run Code Online (Sandbox Code Playgroud)

我可以在命令提示符下看到几个错误,如下所示

src/app/quote/your-cart/your-cart.component.ts[118, 9]: missing whitespace
src/app/quote/your-cart/your-cart.component.ts[129, 8]: missing whitespace
src/app/quote/your-cart/your-cart.component.ts[130, 9]: missing whitespace
src/app/quote/your-cart/your-cart.component.ts[142, 21]: missing whitespace
Run Code Online (Sandbox Code Playgroud)

由于它报告了大量错误,我想在某个文件上导出该错误.它可能是HTML,TXT,甚至JSON也没关系.

简而言之,我想将角度cli lint错误导出到某个文件.

请帮忙.

Mau*_*ppe 7

ng lint 打印到stdout所以执行:

ng lint > out.txt
Run Code Online (Sandbox Code Playgroud)

适用于*nix和Windows