]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/rules/no-await-in-loop.md
import 7.12.1 upstream release
[pve-eslint.git] / eslint / docs / rules / no-await-in-loop.md
index 9edf07363fe4c7d4deb4ee2f7282cdcbbc271241..eebf142374680e117c4f9e6186a8247d4da10889 100644 (file)
@@ -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) {