I was getting incorrect linting warnings for the no-use-before-defined TSLint rule. For now, I just turned it off, since I also found an issue in TSLint where the maintainers say it's not a great rule and is very costly in terms of perf. We also get better checks from TypeScript itself. This results in a roughly 50% speedup for running TSLint on my machine. cc/ @ismail-syed
As per @lemonmade