Description
I'm adding functionality to a large and complex Angular 11 application. I have ng build watch
running and typically making large changes, testing them, and then iterating.
The biggest waste of my time at the moment is waiting for Angular to build a set of changes, go to test it, finding it's not working, then finding it's not working because the browser bundles haven't been updated and the code is stale because Typescript is pissed because there is an unused variable somewhere in the codebase.
Given the scale of the changes I'm making, time spent polishing the code to conform to every single Typescript rule ever invented, after every single change I make, when my current changes are still highly speculative and liable to change repeatedly just totally kills any productivity. Hunting down and 'fixing' the half dozen Typescript 'errors' that might occur just because I've commented out a line of code can be 10 minutes of my time that could be far better spend continuing with my work.
I would like either the IDE (VsCode) or the compiler to continue to make me aware of any Typescript issues so that I can use intelligence (that the tooling does not possess) to determine which errors to fix and when, but I do not want my builds continually failing for spurious stylistic issues.
Someone please tell me this is possible and how to achieve it.
P.S. There is absolutely no point whatsoever suggesting to people to seek answers to questions on StackOverflow. That site has been a total waste of time for years now.
https://stackoverflow.com/questions/66012370/how-do-i-get-angular-to-ignore-typescript-errors