As a maintainer of a popular 3k LOC typescript library, even at 1k LOC you start running into frequent type-related bugs with JavaScript
It did take quite a bit of discipline, but with a skilled team it really wasn't all that hard.
> It did take quite a bit of discipline, but with a skilled team it really wasn't all that hard.
Out of curiosity, what was the turnover within the team? My personal experience is that static typing helps a lot when you're new to a codebase. Probably less so when everybody can recite the architecture in their sleep.
That's what a typechecker gives you–an automated enforcement mechanism for ruling out certain errors during refactoring.