Skip to content

ref(lint): Enable no-unnecessary-condition in mcp-core - #2123

Draft
JoshuaKGoldberg wants to merge 1 commit into
mainfrom
josh/lint-no-unnecessary-condition-mcp-core
Draft

JoshuaKGoldberg wants to merge 1 commit into
mainfrom
josh/lint-no-unnecessary-condition-mcp-core

Conversation

@JoshuaKGoldberg

Copy link
Copy Markdown
Member

Turns on typescript/no-unnecessary-condition for packages/mcp-core, as the first step of a per-package rollout. It drops checks the types already guarantee, and where a guard is needed at runtime but the types hid that, it fixes the types (checked against the Sentry source) so the guard stays.

🤖 Generated with Claude Code

Turn on typescript/no-unnecessary-condition for packages/mcp-core as the
first step of a per-package rollout. Checks the types already guarantee are
removed. Where a guard was load-bearing but the type hid it (array and
record index access, Object.entries inference, event contexts), the type
is made accurate instead so the guard stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Nov 9, 2026 9:43pm UTC

Request Review

@JoshuaKGoldberg

Copy link
Copy Markdown
Member Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 0b5869e. Configure here.

This branch was successfully deployed

2 active deployments
Preview — 0b5869ee Deployed Nov 9, 2026 by vercel[bot]
Actions — 0b5869ee Deployed Nov 9, 2026 by JoshuaKGoldberg via eval #1754
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.

1 participant