Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add missing eslint directive comments in no-await-in-loop #13673

Merged
merged 1 commit into from Sep 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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