-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow await examples without a wrapping async function #31
Comments
Hi @gr2m! I would happily accept and release a pull request that adds this, but I may not be able to implement it myself very soon. |
sorry I think that browser actually don’t have the But would still like to be able to show simplified example codes without wrapping async code into functions |
Yeah let's add support for that by default. Is there an eslint rule for it? |
Comments on this issue seem to be disappearing (at least for me)... emailing [email protected]. |
I’ve researched a bit but couldn’t find any rule. I’m not very familiar with eslint, do you know someone we could ask for help? |
Hey folks! Sorry for the delay!! (I was taking a much-needed break from OSS). I totally agree that top-level I think that for top-level But maybe if you're using babel with the |
Browsers have
await
in the global space so it would be nice when showing examples in the README to allow something like thisI looked for an option to add the package.json but no luck. Is there a way to workaround it or could that even be allowed by default?
The text was updated successfully, but these errors were encountered: