Disallow truthiness/nullishness checks on syntax that never varies on it by RyanCavanaugh · Pull Request #59217 · microsoft/TypeScript

Inspired by @mjbvz's suggestion to disallow if (/regex/), this PR implements a series of checks that mostly overlap with ESLint's no-constant-binary-expression rule, which found some great ...