Skip to content
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

Add eslint rule @typescript-eslint/no-floating-promises in demos and docs directory #769

Conversation

wkazmierczak
Copy link
Collaborator

No description provided.

@wkazmierczak wkazmierczak changed the title Add eslint rule no-floating-promises in docs and demos dirs Add eslint rule @typescript-eslint/no-floating-promises in demos and docs directory Sep 12, 2024
@wkazmierczak wkazmierczak force-pushed the @wkazmierczak/add-eslint-rule-no-floating-promises-demos-docs branch from 1563059 to 852c932 Compare September 12, 2024 15:43
@wkazmierczak wkazmierczak force-pushed the @wkazmierczak/add-eslint-rule-no-floating-promises-demos-docs branch from 852c932 to becd1cb Compare September 12, 2024 15:57
@wkazmierczak wkazmierczak marked this pull request as ready for review September 13, 2024 08:07
@@ -20,7 +20,7 @@ export async function runCompositorExample(

await fn();
} catch (err) {
logError(err);
void logError(err);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
void logError(err);
await logError(err);

@wkazmierczak wkazmierczak force-pushed the @wkazmierczak/add-eslint-rule-no-floating-promises-demos-docs branch from 3100769 to 8d343bc Compare September 16, 2024 07:39
@@ -31,7 +31,7 @@ export function gstStreamWebcam(ip: string, port: number, displayOutput: boolean

function checkGstPlugins(plugins: string[]) {
plugins.forEach(plugin => {
Copy link
Member

Choose a reason for hiding this comment

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

this function is incorrect, exception will not be thrown in checkGstPlugins
convert it to regular for loop, or await Promise.all(plugins.map(plugin => ...))

@wkazmierczak wkazmierczak force-pushed the @wkazmierczak/add-eslint-rule-no-floating-promises-demos-docs branch from d9b62c7 to 7e73c56 Compare September 16, 2024 09:44
@wkazmierczak wkazmierczak merged commit 6c9d606 into master Sep 16, 2024
4 checks passed
@wkazmierczak wkazmierczak deleted the @wkazmierczak/add-eslint-rule-no-floating-promises-demos-docs branch September 16, 2024 11:09
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