Skip to content

ref(replay): Enable @typescript-eslint/no-floating-promises rule - #6344

Merged
mydea merged 1 commit into
masterfrom
fn/replay-no-floating-promises
Nov 30, 2022
Merged

ref(replay): Enable @typescript-eslint/no-floating-promises rule#6344
mydea merged 1 commit into
masterfrom
fn/replay-no-floating-promises

Conversation

@mydea

Copy link
Copy Markdown
Member

This one was rather straightforward, basically adding void before floating promises.

@mydea
mydea requested a review from Lms24November 30, 2022 13:13
@mydeamydea self-assigned this Nov 30, 2022
@mydeamydea mentioned this pull request Nov 30, 2022
6 tasks
@github-actions

github-actionsBot commented Nov 30, 2022

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)19.57 KB (-0.02% 🔽)
@sentry/browser - ES5 CDN Bundle (minified)60.59 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)18.36 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified)54.15 KB (0%)
@sentry/browser - Webpack (gzipped + minified)20.12 KB (0%)
@sentry/browser - Webpack (minified)65.75 KB (0%)
@sentry/react - Webpack (gzipped + minified)20.14 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified)45.99 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)26.44 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)24.88 KB (+0.02% 🔺)
@sentry/replay index.js62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified)62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (minified)199.79 KB (-0.03% 🔽)

Comment threadpackages/replay/src/index.ts Outdated

if (result.category === 'ui.click') {
this.triggerUserActivity();
void this.triggerUserActivity();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: I'm wondering why this method is async in the first place. Probably missing something but afaict it's never used in an async context.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

good point, I'll just make this un-async!

@mydea
mydeaforce-pushed the fn/replay-no-floating-promises branch from fc7b412 to a906553CompareNovember 30, 2022 14:26
@mydeamydea changed the title ref(replay): Enable '@typescript-eslint/no-floating-promises' ruleref(replay): Enable @typescript-eslint/no-floating-promises ruleNov 30, 2022
@mydea
mydea merged commit bb7a021 into masterNov 30, 2022
@mydea
mydea deleted the fn/replay-no-floating-promises branch November 30, 2022 14:47
Sign up for freeto 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.

2 participants

@mydea@Lms24