|
2 | 2 | source: crates/oxc_linter/src/tester.rs |
3 | 3 | --- |
4 | 4 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
5 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 5 | + ╭─[prefer_await_to_then.tsx:1:22] |
6 | 6 | 1 │ function foo() { hey.then(x => {}) } |
7 | | - · ───────────────── |
| 7 | + · ──── |
8 | 8 | ╰──── |
9 | 9 |
|
10 | 10 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
11 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 11 | + ╭─[prefer_await_to_then.tsx:1:43] |
12 | 12 | 1 │ function foo() { hey.then(function() { }).then() } |
13 | | - · ─────────────────────────────── |
| 13 | + · ──── |
14 | 14 | ╰──── |
15 | 15 |
|
16 | 16 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
17 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 17 | + ╭─[prefer_await_to_then.tsx:1:22] |
18 | 18 | 1 │ function foo() { hey.then(function() { }).then() } |
19 | | - · ──────────────────────── |
| 19 | + · ──── |
20 | 20 | ╰──── |
21 | 21 |
|
22 | 22 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
23 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 23 | + ╭─[prefer_await_to_then.tsx:1:51] |
24 | 24 | 1 │ function foo() { hey.then(function() { }).then(x).catch() } |
25 | | - · ──────────────────────────────────────── |
| 25 | + · ───── |
26 | 26 | ╰──── |
27 | 27 |
|
28 | 28 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
29 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 29 | + ╭─[prefer_await_to_then.tsx:1:43] |
30 | 30 | 1 │ function foo() { hey.then(function() { }).then(x).catch() } |
31 | | - · ──────────────────────────────── |
| 31 | + · ──── |
32 | 32 | ╰──── |
33 | 33 |
|
34 | 34 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
35 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 35 | + ╭─[prefer_await_to_then.tsx:1:22] |
36 | 36 | 1 │ function foo() { hey.then(function() { }).then(x).catch() } |
37 | | - · ──────────────────────── |
| 37 | + · ──── |
38 | 38 | ╰──── |
39 | 39 |
|
40 | 40 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
41 | | - ╭─[prefer_await_to_then.tsx:1:22] |
| 41 | + ╭─[prefer_await_to_then.tsx:1:47] |
42 | 42 | 1 │ async function a() { hey.then(function() { }).then(function() { }) } |
43 | | - · ───────────────────────────────────────────── |
| 43 | + · ──── |
44 | 44 | ╰──── |
45 | 45 |
|
46 | 46 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
47 | | - ╭─[prefer_await_to_then.tsx:1:22] |
| 47 | + ╭─[prefer_await_to_then.tsx:1:26] |
48 | 48 | 1 │ async function a() { hey.then(function() { }).then(function() { }) } |
49 | | - · ──────────────────────── |
| 49 | + · ──── |
50 | 50 | ╰──── |
51 | 51 |
|
52 | 52 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
53 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 53 | + ╭─[prefer_await_to_then.tsx:1:22] |
54 | 54 | 1 │ function foo() { hey.catch(x => {}) } |
55 | | - · ────────────────── |
| 55 | + · ───── |
56 | 56 | ╰──── |
57 | 57 |
|
58 | 58 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
59 | | - ╭─[prefer_await_to_then.tsx:1:18] |
| 59 | + ╭─[prefer_await_to_then.tsx:1:22] |
60 | 60 | 1 │ function foo() { hey.finally(x => {}) } |
61 | | - · ──────────────────── |
| 61 | + · ─────── |
62 | 62 | ╰──── |
63 | 63 |
|
64 | 64 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
65 | | - ╭─[prefer_await_to_then.tsx:1:1] |
| 65 | + ╭─[prefer_await_to_then.tsx:1:13] |
66 | 66 | 1 │ something().then(async () => await somethingElse()) |
67 | | - · ─────────────────────────────────────────────────── |
| 67 | + · ──── |
68 | 68 | ╰──── |
69 | 69 |
|
70 | 70 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
71 | | - ╭─[prefer_await_to_then.tsx:1:30] |
| 71 | + ╭─[prefer_await_to_then.tsx:1:38] |
72 | 72 | 1 │ async function foo() { await thing().then() } |
73 | | - · ────────────── |
| 73 | + · ──── |
74 | 74 | ╰──── |
75 | 75 |
|
76 | 76 | ⚠ eslint-plugin-promise(prefer-await-to-then): Prefer await to then()/catch()/finally() |
77 | | - ╭─[prefer_await_to_then.tsx:1:24] |
| 77 | + ╭─[prefer_await_to_then.tsx:1:32] |
78 | 78 | 1 │ async function foo() { thing().then() } |
79 | | - · ────────────── |
| 79 | + · ──── |
80 | 80 | ╰──── |
0 commit comments