Enable tsconfig noUncheckedIndexedAccess

This commit is contained in:
Jamie
2026-03-12 16:24:01 -07:00
committed by GitHub
parent 34b0f9cd50
commit 1d45a52da7
311 changed files with 2146 additions and 1589 deletions

View File

@@ -210,8 +210,10 @@ export function eliminateOutOfDateFiles(
path: target,
start: isLineAfterDate(start, date),
end:
isLineAfterDate(end[end.length - 1], date) ||
isLineAfterDate(end[end.length - 2], date),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
isLineAfterDate(end[end.length - 1]!, date) ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
isLineAfterDate(end[end.length - 2]!, date),
};
if (!file.start && !file.end) {