Skip to content

build: Actually use import eslint rules #16134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 25, 2025

We had a bunch of import/export related eslint rules, but did not actually apply them to anything 🤦 this PR changes this, and also applies all the rules to all the files.

The vast majority of the changes is just auto-fixes, but there are a few small manual things that were needed - these are in separate commits, it's probably easier to look at them separately!

It also updates prettier to apply to dev-packages.

@mydea mydea requested review from Lms24, chargome and s1gr1d April 25, 2025 08:51
@mydea mydea self-assigned this Apr 25, 2025
@mydea mydea requested review from a team as code owners April 25, 2025 08:51
Copy link
Contributor

github-actions bot commented Apr 25, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.28 KB -0.01% -2 B 🔽
@sentry/browser - with treeshaking flags 23.1 KB -0.09% -20 B 🔽
@sentry/browser (incl. Tracing) 36.93 KB -0.18% -65 B 🔽
@sentry/browser (incl. Tracing, Replay) 74.1 KB -0.11% -76 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.47 KB -0.13% -86 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 78.76 KB -0.1% -73 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 90.58 KB -0.08% -68 B 🔽
@sentry/browser (incl. Feedback) 39.68 KB -0.01% -1 B 🔽
@sentry/browser (incl. sendFeedback) 27.9 KB -0.02% -3 B 🔽
@sentry/browser (incl. FeedbackAsync) 32.67 KB -0.01% -3 B 🔽
@sentry/react 25.09 KB +0.02% +4 B 🔺
@sentry/react (incl. Tracing) 38.93 KB +0.07% +26 B 🔺
@sentry/vue 27.5 KB -0.01% -1 B 🔽
@sentry/vue (incl. Tracing) 38.69 KB -0.05% -18 B 🔽
@sentry/svelte 23.31 KB -0.03% -7 B 🔽
CDN Bundle 24.49 KB -0.03% -6 B 🔽
CDN Bundle (incl. Tracing) 36.96 KB -0.05% -17 B 🔽
CDN Bundle (incl. Tracing, Replay) 72 KB +0.01% +3 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 77.3 KB +0.18% +139 B 🔺
CDN Bundle - uncompressed 71.5 KB +0.02% +8 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 109.33 KB -0.02% -15 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 220.62 KB -0.01% -17 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 233.15 KB -0.01% -11 B 🔽
@sentry/nextjs (client) 40.51 KB -0.07% -25 B 🔽
@sentry/sveltekit (client) 37.41 KB -0.07% -26 B 🔽
@sentry/node 143.36 KB -0.01% -12 B 🔽
@sentry/node - without tracing 96.49 KB -0.03% -25 B 🔽
@sentry/aws-serverless 120.82 KB -0.02% -13 B 🔽

View base workflow run

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

great catch!
interesting that this decreases bundle size 🤔

mydea added a commit that referenced this pull request Apr 25, 2025
…16135)

Extracted out of
#16134

During that refactor, a bunch of stuff failed. The reason for this is
that we relied on a side-effect mock in `use-fake-timers` utility, which
is really not ideal at all.

So this refactors this to instead make this explicit, as a side-effect
import on the top of the test files. Then we can just use
`vi.useFakeTimers()` normally.
@mydea mydea force-pushed the fn/eslint-imports branch from a3e2fa7 to cdc91ba Compare April 25, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants