Skip to content

(Updated) Flowlint no floating promises#8260

Closed
SebastienGllmt wants to merge 9 commits into
facebook:masterfrom
SebastienGllmt:flowlint-no-floating-promises
Closed

(Updated) Flowlint no floating promises#8260
SebastienGllmt wants to merge 9 commits into
facebook:masterfrom
SebastienGllmt:flowlint-no-floating-promises

Conversation

@SebastienGllmt

@SebastienGllmt SebastienGllmt commented Jan 12, 2020

Copy link
Copy Markdown
Contributor

@goodmind made a PR back in Sept to add a no-floating-promises lint (#8100). Unfortunately the PR now has some merge conflicts so I tried to update the PR to get it working on the latest mater branch.

@SebastienGllmt

Copy link
Copy Markdown
Contributor Author

One thing I just noticed is that probably we should figure out how to disable this for top-level async statements since you can't await on them

@joshuanapoli

Copy link
Copy Markdown

One thing I just noticed is that probably we should figure out how to disable this for top-level async statements since you can't await on them

Is there any way to condition the warning on the top-level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants