2016-12-28 2 views
1

私はangular2プロジェクトにangular cliを使用しています。angle cli lintエラー別のファイルへのエクスポート

ng lint 

を次のように私は毛羽立ち-とフォーマッティングコードのためlintコマンドを使用していますが、それは巨大なリストを報告しているので

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 

を次のように私は私のコマンドプロンプト上でいくつかのエラーを見ることができていますエラーのいくつかのファイルに、そのエラーをエクスポートしたい。それはHTML、TXT、またはEven JSONでもかまいません。私はいくつかのファイルに角度のCLIリントエラーをエクスポートしたい一言で言えば

助けてください。その実行stdoutに

答えて

4

ng lintプリント:* nixのとWindowsの糸くずをngの

+0

特定のtsファイルのエラーを知るには? –

0

の両方で

ng lint > out.txt 

ワークス| findstr "name.module.ts"
ng lint | git bashのgrep "name.module.ts"

関連する問題