21.8 Adopting Strict Mode Incrementally
Right, so you’ve seen the light and want to turn on strict mode and its more discerning cousin, strictNullChecks. Good. But you’re not working in a greenfield project where you can just flip the switch and watch the world burn. You’re in the real world, with a codebase that has history, and that history is probably littered with any types and variables that are definitely null half the time. Trying to enable this for your entire project in one go is a recipe for 10,000 errors and a mutiny from your team. Let’s do this incrementally, like adults.