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

chore: fix snaphots #5161

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function foo() { for await (var x of xs) { while (1) await f(x) } }
```
invalid.js:2:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

1 │ // While loops
> 2 │ async function foo() { while (baz) { await bar; } }
Expand All @@ -49,7 +49,7 @@ invalid.js:2:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:3:31 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

1 │ // While loops
2 │ async function foo() { while (baz) { await bar; } }
Expand All @@ -66,7 +66,7 @@ invalid.js:3:31 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:4:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

2 │ async function foo() { while (baz) { await bar; } }
3 │ async function foo() { while (await foo()) { } }
Expand All @@ -83,7 +83,7 @@ invalid.js:4:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:6:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

4 │ async function foo() { while (baz) { for await (x of xs); } }
5 │ // For of loops
Expand All @@ -100,7 +100,7 @@ invalid.js:6:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:7:45 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

5 │ // For of loops
6 │ async function foo() { for (var bar of baz) { await bar; } }
Expand All @@ -117,7 +117,7 @@ invalid.js:7:45 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:9:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

7 │ async function foo() { for (var bar of baz) await bar; }
8 │ // For in loops
Expand All @@ -134,7 +134,7 @@ invalid.js:9:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:11:50 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

9 │ async function foo() { for (var bar in baz) { await bar; } }
10 │ // For loops
Expand All @@ -151,7 +151,7 @@ invalid.js:11:50 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:12:36 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

10 │ // For loops
11 │ async function foo() { for (var i; i < n; i++) { await bar; } }
Expand All @@ -168,7 +168,7 @@ invalid.js:12:36 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:13:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

11 │ async function foo() { for (var i; i < n; i++) { await bar; } }
12 │ async function foo() { for (var i; await foo(i); i++) { } }
Expand All @@ -185,7 +185,7 @@ invalid.js:13:47 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:15:29 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

13 │ async function foo() { for (var i; i < n; i = await bar) { } }
14 │ // Do while loops
Expand All @@ -202,7 +202,7 @@ invalid.js:15:29 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:16:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

14 │ // Do while loops
15 │ async function foo() { do { await bar; } while (baz); }
Expand All @@ -219,7 +219,7 @@ invalid.js:16:38 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:18:54 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

16 │ async function foo() { do { } while (await bar); }
17 │ // Deep in a loop body
Expand All @@ -236,7 +236,7 @@ invalid.js:18:54 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:20:42 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

18 │ async function foo() { while (true) { if (bar) { foo(await bar); } } }
19 │ // Deep in a loop condition
Expand All @@ -253,7 +253,7 @@ invalid.js:20:42 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━
```
invalid.js:22:60 lint/nursery/noAwaitInLoop ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Avoid using await inside loops.
i Avoid using await inside loops.

20 │ async function foo() { while (xyz || 5 > await x) { } }
21 │ // In a nested loop of for-await-of
Expand Down
Loading