Skip to content

ref(scraps): Replace defined helpers with null checks - #129685

Merged
natemoo-re merged 3 commits into
masterfrom
ref/scraps-nullish-checks
Nov 4, 2026
Merged

natemoo-re merged 3 commits into
masterfrom
ref/scraps-nullish-checks

Conversation

@natemoo-re

Copy link
Copy Markdown
Member

Allow == null and != null checks in @sentry/scraps by configuring eqeqeq with ['error', 'always', {null: 'ignore'}]. Other loose comparisons still fail lint.

Replace the shared defined() helper and the local Select helpers with direct null checks, and remove the shared helper's tests. This follows #129523 and preserves checks for both null and undefined, including Select's option filtering.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 3, 2026
@natemoo-re
natemoo-re marked this pull request as ready for review November 3, 2026 15:37
@natemoo-re
natemoo-re requested review from a team as code owners November 3, 2026 15:37
@natemoo-re
natemoo-re enabled auto-merge (squash) November 4, 2026 13:55
@natemoo-re
natemoo-re merged commit acdc5c9 into master Nov 4, 2026
81 checks passed
@natemoo-re
natemoo-re deleted the ref/scraps-nullish-checks branch November 4, 2026 13:58

This branch was successfully deployed

1 active deployment
Preview — 1eca6e1e Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants