https://typescript-eslint.io/rules/prefer-nullish-coalescing/
https://typescript-eslint.io/rules/prefer-optional-chain/
These discourage falsy/truthy checking, and actually check for undefined or null.
This'd help if a parameter is number | null/idx?: number, to not branch on 0.