From 5138c913c256e4266ffb68278783af45bf70af84 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 10 Sep 2020 02:41:36 +0200 Subject: [PATCH] Docs: add missing eslint directive comments in no-await-in-loop (#13673) --- 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) {