1. Enable the eslint rule `@typescript-eslint/no-unused-expressions` 2. Work through the various type assertions, replacing them with typesafe alternatives or disabling with appropriate [eslint inline config comments](https://eslint.org/docs/latest/use/configure/rules#report-unused-eslint-inline-config-comments).