Skip to content

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

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

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

Conversation

@mydea
Copy link
Copy Markdown
Member

@mydea mydea commented Nov 30, 2022

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

@mydea mydea requested a review from Lms24 November 30, 2022 13:13
@mydea mydea self-assigned this Nov 30, 2022
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 30, 2022

size-limit report 📦

Path Size
@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.js 62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified) 62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (minified) 199.79 KB (-0.03% 🔽)

Comment thread packages/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
Member Author

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 mydea force-pushed the fn/replay-no-floating-promises branch from fc7b412 to a906553 Compare November 30, 2022 14:26
@mydea mydea changed the title ref(replay): Enable '@typescript-eslint/no-floating-promises' rule ref(replay): Enable @typescript-eslint/no-floating-promises rule Nov 30, 2022
@mydea mydea merged commit bb7a021 into master Nov 30, 2022
@mydea mydea deleted the fn/replay-no-floating-promises branch November 30, 2022 14:47
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.

2 participants