Skip to content

feat(lint): Enable react/rule-suppression - #127772

Closed
scttcper wants to merge 4 commits into
scttcper/enable-react-todofrom
scttcper/enable-react-rule-suppression
Closed

scttcper wants to merge 4 commits into
scttcper/enable-react-todofrom
scttcper/enable-react-rule-suppression

Conversation

@scttcper

@scttcper scttcper commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

The React Compiler skips any component or hook that suppresses a React hooks rule, and that also turns off the other compiler rules there. Every existing hit is an old eslint-disable react-hooks/exhaustive-deps comment. Our oxlint-disable react/* comments aren't flagged.

The 91 existing hits get an oxlint-disable-next-line react/rule-suppression above them, so only new suppressions fail.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 16, 2026
@scttcper
scttcper added this pull request to stack #127776 October 16, 2026 15:33
The React Compiler skips any component or hook that suppresses a React
hooks rule, which also turns off the other compiler rules there. All of
the existing hits are old `eslint-disable react-hooks/exhaustive-deps`
comments.

The 91 existing findings across 77 files go into the suppression
baseline, so only new suppressions fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scttcper
scttcper force-pushed the scttcper/enable-react-rule-suppression branch from 95da045 to 7deca12 Compare October 16, 2026 15:37
@sentry

sentry Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
0 0 0 0 630 0 ✅ Unchanged

⚙️ sentry-frontend Snapshot Settings

scttcper and others added 2 commits October 16, 2026 08:50
… scttcper/enable-react-rule-suppression

# Conflicts:
#	oxlint-suppressions.json
#	oxlint.config.ts
…dings

Moves `react/rule-suppression` out of the incubator and back to a
regular rule. Each of the 91 old `eslint-disable react-hooks/exhaustive-deps`
comments gets an `oxlint-disable-next-line` above it instead of a
suppression budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scttcper scttcper changed the title feat(lint): Enable react/rule-suppression in the incubator feat(lint): Enable react/rule-suppression Oct 16, 2026
It flags every `exhaustive-deps` suppression in either comment spelling,
so keeping it on just stacks an extra ignore above all 91 existing ones.
Removes those comments and leaves the rule off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 16, 2026
@scttcper
scttcper removed this pull request from stack #127776 October 16, 2026 16:08
@scttcper scttcper closed this Oct 16, 2026

This branch was successfully deployed

1 active deployment
Preview — 2de8b482 Deployed Oct 16, 2026 by vercel[bot]
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