[go: up one dir, main page]

Skip to content

Commit

Permalink
docs: force space after await in no-floating-promises snippet (#8228)
Browse files Browse the repository at this point in the history
force space after await
  • Loading branch information
kirkwaiblinger authored Jan 9, 2024
1 parent e0f591e commit 8ca5e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-plugin/docs/rules/no-floating-promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ This allows you to skip checking of async IIFEs (Immediately Invoked function Ex

Examples of **correct** code for this rule with `{ ignoreIIFE: true }`:

<!-- prettier-ignore -->
```ts option='{ "ignoreIIFE": true }' showPlaygroundButton
await(async function () {
await (async function () {
await res(1);
})();

Expand Down

0 comments on commit 8ca5e5e

Please sign in to comment.