Navigation Menu

Skip to content

Commit

Permalink
Docs: add missing eslint directive comments in no-await-in-loop (#13673)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Sep 10, 2020
1 parent 17b58b5 commit 5138c91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-await-in-loop.md
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 5138c91

Please sign in to comment.