jrparish / tslint-webpack-plugin

TSLint plugin for Webpack
MIT License
20 stars 9 forks source link

Start running tslint at the beginning of the process. #16

Closed SebastianStehle closed 5 years ago

SebastianStehle commented 5 years ago

I changed these things:

  1. The plugin waits for the linter to complete.
  2. 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).

SebastianStehle commented 5 years ago

I implemented your requests.