Turn on `noUncheckedIndexedAccess` so index access includes `undefined` and forces a presence check.
Why This Matters
By default array/record index access is typed as present, so out-of-bounds or missing keys produce undefined that the compiler never warns about.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.