google / gts

☂️ TypeScript style guide, formatter, and linter.
https://github.com/google/gts
Apache License 2.0
5.04k stars 203 forks source link

Expose `--max-warnings` flag #831

Closed gwealm closed 9 months ago

gwealm commented 9 months ago

This is part feature request/part question:

Is there a reason why eslint's --max_warnings is not exposed as a flag? This would be a life quality improvement instead of having to set it in eslint's config.

gwealm commented 9 months ago

After a little bit of tweaking and skimming through the code, I found the possibility to run the command as gts lint -- **/*.ts **/*.js **/*.tsx **/*.jsx --no-error-on-unmatched-pattern --max-warnings 0, therefore I'm closing this issue.