--format=checkstyle option for tsc --noEmit #42453
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
Checkstyle
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
We have automated checking for typescript errors in our CI tooling (Jenkins), using the following command
./node_modules/.bin/tsc --project ./tsconfig.json --noEmit > build-logs/typescript-error.log
. Currently we save the output to a plaint text file, but we would like to be able to parse it in our CI. The standards most tooling follows is a format option which supports a checkstyle format, which can easily be parsed by most CI's.See https://checkstyle.sourceforge.io/config.html#Configuration_XML_Structure for more information on how to format the xml.
It would be great to have a
--format=checkstyle
option we could add to our current command to get a formatted xml file with all errors.π Motivating Example
Most of our current tooling already supports this, and this enables us to check code quality, fail builds, etc.
π» Use Cases
We currently have checks for stylelint, eslint, php codesniffer, phpstan, psalm and htmlhint. It would be great if we could also easily identify and report which typescript errors exist within our projects and possibly fail a build if we encounter them.
The text was updated successfully, but these errors were encountered: