Obviously, we need a better approach to type safety on the SHM frontend team. This will help us avoid bugs and generally save time fixing issues that could be identified earlier.
We want to make sure that our type safety is going in the right direction. We can immediately do the following:
Add @ts-expect-error to all type errors in the codebase, using some automated tool
Add CI check that makes sure types "pass". So that new code will have to be type safe (or in embarrassing cases, ignored)
Our editors should be configured to run ts across the codebase
Chart + Keep track of how many TS ignores we have
Work hard to improve the types across the codebase. Many types are simple issues, but there are a lot of scary-complicated ones.
Then we could introduce a discord bot or something that keeps track of when we introduce or remove TS ignores. The bot could say "thank you" to the devs who remove many TS ignores in one week, and shame the devs who add them.