I have found that sometimes people do not realise they have linting errors in their tests when they run them since they are show before the test progress/information.

Is there any configuration which will cause ALL tests to fail if any of the tests have any linting errors?

I am using mocha with karma.

Thanks.