The child process redirects the output to the parent as json and the parent parses the json and adds the result to the compilation object.
=> The tslint should produce the results faster and warning and error handling is respected.
Edit: I tested it in a bigger project of mine (https://github.com/squidex/squidex) and I realized that with the dev server the incremental build is much faster than the linting process and waiting for the results would slow down the development process. Therefore I added an option which allows to wait for the results and add the errors to the compilation errors/warnings or to keep it running in the background and write it to the output when it is ready (but not before the compilation has been completed).
I changed these things:
=> The tslint should produce the results faster and warning and error handling is respected.
Edit: I tested it in a bigger project of mine (https://github.com/squidex/squidex) and I realized that with the dev server the incremental build is much faster than the linting process and waiting for the results would slow down the development process. Therefore I added an option which allows to wait for the results and add the errors to the compilation errors/warnings or to keep it running in the background and write it to the output when it is ready (but not before the compilation has been completed).