How can I run ng lint
without showing warnings? TSLint CLI provides a --quiet flag, but there doesn't appear to be one for Angular or a way to pass through CLI flags. I still want warnings in my tsconfig so they show up in the editor, but sometimes I only want a list of errors.
Widnows solution:
You can use findstr which Searches for patterns of text. The parameter /v
prints only lines that don't contain a match.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/findstr
ng lint [PROJECT NAME] | findstr /v "WARNING: .*"
You can omit [Project Name] if you want to run everything in the directory
ng lint | findstr /v "WARNING: .*"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With