Search code examples
tslint

TSLint count errors


How to count TSLint errors?

I am working in a project with Angular where we changed the TSLint rules and we have massive output.

I would like to count the issues to see over the time if we progressively decrease them.


Solution

  • This command worked for me on Mac:

    tslint 'src/**/*.ts' | wc -l
    

    Output: 1953 errors.