Repository navigation
chore(lint): enable unicorn/consistent-existence-index-check - #2143
Merged
HAYDEN-OAI merged 15 commits intoAug 8, 2026
Merged
HAYDEN-OAI merged 15 commits into
HAYDEN-OAI merged 15 commits into
Conversation
This was referenced Aug 8, 2026
jbeckwith-oai
approved these changes
Aug 8, 2026
jbeckwith-oai
left a comment
Contributor
There was a problem hiding this comment.
The three rewrites are semantically equivalent because Array.prototype.findIndex returns only -1 or a nonnegative index, and the newly enabled rule now passes across the handwritten source. The immediate stacked diff is minimal, introduces no file-size or structural regression, and local lint, typecheck, focused emitter tests, and exact-head CI all pass.
Base automatically changed from
dev/hayden/ultracite-062-no-new-wrappers
to
main
August 8, 2026 00:24
Contributor
HAYDEN-OAI
deleted the
dev/hayden/ultracite-063-unicorn-consistent-existence-index-check
branch
August 8, 2026 00:29
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes being requested
unicorn/consistent-existence-index-checkcompatibility exception fromoxlint.config.ts.findIndex()existence checks to compare with-1.Additional context & links
Validation
pnpm lintpnpm exec tsc --pretty falsepnpm exec vitest run --config vitest.config.mts --update=noneStack
#2141
#2143 👈 this PR
#2144
#2145
#2146
#2147
#2148
#2149