Repository navigation
fix(lint): add suppressions for oxlint 1.86.0 diagnostics - #2045
Merged
stipsan merged 2 commits intoSep 29, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
✅ E2E Tests🟢 43 passed • 🟡 1 flaky • view full report • view run Datasets: |
This was referenced Sep 28, 2026
cursor Bot
pushed a commit
that referenced
this pull request
Sep 29, 2026
Resolves the conflicts with the lock file maintenance in #2039, which also brought #2045's suppression changes to main: - pnpm-lock.yaml: took main's lockfile and ran `pnpm install` to re-apply this branch's catalog change. main already resolves oxlint 1.86.0 and oxlint-tsgolint 7.0.2003, so no resolved version changes; the diff is the catalog specifiers plus pnpm recomputing sanity@next peer-variant suffixes. A clean main with only this branch's pnpm-workspace.yaml change produces the identical lockfile. - plugins/@sanity/assist/src/_lib/fixedListenQuery.ts: took main's version (#2045's), which already fixes the suppression.
This branch was successfully 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.
Following the oxlint 1.86.0 update, the CI
lintjob failed due to newly introducedreact/puritydiagnostics and a change in diagnostic span anchoring for multilineno-unsafe-type-assertionexpressions. Per task instructions, targetedoxlint-disable-next-linesuppressions have been added and realigned, deferring architectural refactors to follow-up PRs.Summary of Changes
react/puritysuppressions: Addedoxlint-disable-next-line react/puritydirectives across render-phasenew Date()andDate.now()calls in@sanity/assistandsanity-plugin-media.no-unsafe-type-assertion: In oxlint 1.86.0, multiline type assertions report diagnostics on the line containing} as <Type>rather than the opening line of the statement. Realigned directives directly above the assertion line across@sanity/assist,sanity-plugin-hotspot-array,@sanity/document-internationalization,sanity-plugin-internationalized-array,@sanity/block-insert-picker,sanity-translations-tab, and@sanity/presets.Example
Note
Low Risk
Comment-only lint directive moves and new suppressions; no application logic, data handling, or API changes.
Overview
Restores CI lint after oxlint 1.86.0 by updating inline suppressions only—no runtime or type behavior changes.
react/purity: Addsoxlint-disable-next-line react/puritywhere components callnew Date()/ relative time formatting during render (Assist presence/history,TimeAgo, media asset rows).no-unsafe-type-assertionspan anchoring: Multilineas Typeassertions now report on the closing assertion line, sooxlint-disable-next-linecomments were moved from the statement start to immediately above the} as …line across Assist, block-insert-picker, document-internationalization, internationalized-array, presets, hotspot-array, and sanity-translations-tab. A few rule names were normalized to oxlint’sno-unsafe-type-assertion(including a block disable/enable inImageHotspotArray).Test files received the same realignment for mock
as any/ stub return values.Reviewed by Cursor Bugbot for commit 7fe29fa. Bugbot is set up for automated code reviews on this repo. Configure here.