From ca70b01c17b181916e4ae10b7523f46b6c88076e Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Tue, 8 Sep 2020 22:10:18 +0200 Subject: [PATCH] Docs: add missing eslint directive comments in no-await-in-loop --- docs/rules/no-await-in-loop.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/rules/no-await-in-loop.md b/docs/rules/no-await-in-loop.md index 9edf07363fe..eebf1423746 100644 --- a/docs/rules/no-await-in-loop.md +++ b/docs/rules/no-await-in-loop.md @@ -42,6 +42,8 @@ This rule disallows the use of `await` within loop bodies. Examples of **correct** code for this rule: ```js +/*eslint no-await-in-loop: "error"*/ + async function foo(things) { const results = []; for (const thing of things) { @@ -56,6 +58,8 @@ async function foo(things) { Examples of **incorrect** code for this rule: ```js +/*eslint no-await-in-loop: "error"*/ + async function foo(things) { const results = []; for (const thing of things) {