Skip to content

chore: enable strict index checks#582

Merged
dreyfus92 merged 1 commit into
mainfrom
jg/strict-indexing
Jul 3, 2026
Merged

chore: enable strict index checks#582
dreyfus92 merged 1 commit into
mainfrom
jg/strict-indexing

Conversation

@43081j

@43081j 43081j commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This catches a couple of bugs where we were assuming arrays were non empty, for example. By forcing us to check the result of index access, we'll generally catch these bugs.

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b232f01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/prompts Patch
@clack/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@43081j 43081j force-pushed the jg/strict-indexing branch from 79a19f5 to fbfa763 Compare July 2, 2026 13:02
@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

commit: b232f01

This catches a couple of bugs where we were assuming arrays were non
empty, for example. By forcing us to check the result of index access,
we'll generally catch these bugs.
@43081j 43081j force-pushed the jg/strict-indexing branch from fbfa763 to b232f01 Compare July 2, 2026 13:05

@dreyfus92 dreyfus92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @43081j 💜

@dreyfus92 dreyfus92 merged commit 4b24953 into main Jul 3, 2026
9 checks passed
@dreyfus92 dreyfus92 deleted the jg/strict-indexing branch July 3, 2026 21:33
@bombshell-bot bombshell-bot Bot mentioned this pull request Jul 3, 2026
@ghostdevv

Copy link
Copy Markdown
Member

based

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants