Repository navigation
chore(lint): Allow console calls in SDK source only inside consoleSandbox - #26860
Open
sentry-junior[bot] wants to merge 2 commits into
Open
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
4 of 13 tasks
Contributor
size-limit report 📦Compared: d3133b8 (PR test merge using develop at b7c65c3) Against: b7c65c3 (develop) · base run #67940 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 84 successful. See the run.
Successful checks
|
mydea
reviewed
Nov 25, 2026
mydea
marked this pull request as ready for review
November 25, 2026 11:31
javascript-sdk-gitflow
Bot
requested review from
RulaKhaled,
logaretm and
timfish
November 25, 2026 11:32
…dbox Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
sentry-junior
Bot
force-pushed
the
chore/lint-no-unsandboxed-console
branch
from
November 25, 2026 13:47
b701134 to
086699c
Compare
This branch has not been 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.
What
Adds the
sdk/no-unsandboxed-consolerule. In**/src/**it replacesno-consoleand allows directconsole.*calls only inside aconsoleSandbox(() => ...)callback. This removes all 196no-consoledisable comments frompackages/*/src. No runtime code changes.Why
Most of those disable comments sat next to a
consoleSandboxcall. They added noise, and lint couldn't tell a sandboxed call from a bare one, so Bugbot had to check. The Bugbot console rule is removed, sincesdk/no-unsandboxed-consoleenforces it.Non-obvious decisions:
**/src/vite/**turns the rule off. Those dirs are Vite plugins that run at build time and log to the terminal, soconsoleSandboxdoesn't apply. That covers 76 calls.oxlint-disable-next-line sdk/no-unsandboxed-consolecomment with a reason: build-time code outsidesrc/vite(bundler-plugins, Next.js loaders, nitro, remix/solidstart config, the Bun orchestrion plugin), worker threads, React Router's mirrored error logging, and warnings that run beforeinit().dev-packages/*/srckeepsno-console. Those are test utilities, not SDK code.nodeanddenoonly escape the sandbox because they usually run beforeinit(). They could get aconsoleSandboxwrapper in a follow-up, which would be a runtime change.Part of #26852
via @mydea.
--
View Session [Sentry]