https://typescript-eslint.io/rules/strict-boolean-expressions Together with https://github.com/matrix-org/matrix-js-sdk/issues/2120 and https://github.com/matrix-org/matrix-js-sdk/issues/2121, this'd do with all truthiness/falsiness checks, and requires these to be explicitly checked by themselves.