From 961c989703cbc15642ecc79a480142192e9ec028 Mon Sep 17 00:00:00 2001 From: Kirk Waiblinger Date: Mon, 8 Jan 2024 13:47:40 -0700 Subject: [PATCH] force space after await --- packages/eslint-plugin/docs/rules/no-floating-promises.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin/docs/rules/no-floating-promises.md b/packages/eslint-plugin/docs/rules/no-floating-promises.md index e137a85aaf97..da46d7f98d18 100644 --- a/packages/eslint-plugin/docs/rules/no-floating-promises.md +++ b/packages/eslint-plugin/docs/rules/no-floating-promises.md @@ -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 }`: + ```ts option='{ "ignoreIIFE": true }' showPlaygroundButton -await(async function () { +await (async function () { await res(1); })(); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy