|
1 | 1 | --- |
2 | 2 | source: crates/oxc_linter/src/tester.rs |
3 | 3 | --- |
4 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 4 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
5 | 5 | ╭─[catch_or_return.tsx:1:37] |
6 | 6 | 1 │ function callPromise(promise, cb) { promise.then(cb) } |
7 | 7 | · ──────────────── |
8 | 8 | ╰──── |
9 | | - help: Return the promise or chain a catch() |
| 9 | + help: Return the promise or chain a `catch()`. |
10 | 10 |
|
11 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 11 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
12 | 12 | ╭─[catch_or_return.tsx:1:1] |
13 | 13 | 1 │ fetch("http://www.yahoo.com").then(console.log.bind(console)) |
14 | 14 | · ───────────────────────────────────────────────────────────── |
15 | 15 | ╰──── |
16 | | - help: Return the promise or chain a catch() |
| 16 | + help: Return the promise or chain a `catch()`. |
17 | 17 |
|
18 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 18 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
19 | 19 | ╭─[catch_or_return.tsx:1:1] |
20 | 20 | 1 │ a.then(function() { return "x"; }).then(function(y) { throw y; }) |
21 | 21 | · ───────────────────────────────────────────────────────────────── |
22 | 22 | ╰──── |
23 | | - help: Return the promise or chain a catch() |
| 23 | + help: Return the promise or chain a `catch()`. |
24 | 24 |
|
25 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 25 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
26 | 26 | ╭─[catch_or_return.tsx:1:1] |
27 | 27 | 1 │ Promise.resolve(frank) |
28 | 28 | · ────────────────────── |
29 | 29 | ╰──── |
30 | | - help: Return the promise or chain a catch() |
| 30 | + help: Return the promise or chain a `catch()`. |
31 | 31 |
|
32 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 32 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
33 | 33 | ╭─[catch_or_return.tsx:1:1] |
34 | 34 | 1 │ Promise.all([]) |
35 | 35 | · ─────────────── |
36 | 36 | ╰──── |
37 | | - help: Return the promise or chain a catch() |
| 37 | + help: Return the promise or chain a `catch()`. |
38 | 38 |
|
39 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 39 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
40 | 40 | ╭─[catch_or_return.tsx:1:1] |
41 | 41 | 1 │ Promise.allSettled([]) |
42 | 42 | · ────────────────────── |
43 | 43 | ╰──── |
44 | | - help: Return the promise or chain a catch() |
| 44 | + help: Return the promise or chain a `catch()`. |
45 | 45 |
|
46 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 46 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
47 | 47 | ╭─[catch_or_return.tsx:1:1] |
48 | 48 | 1 │ Promise.any([]) |
49 | 49 | · ─────────────── |
50 | 50 | ╰──── |
51 | | - help: Return the promise or chain a catch() |
| 51 | + help: Return the promise or chain a `catch()`. |
52 | 52 |
|
53 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 53 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
54 | 54 | ╭─[catch_or_return.tsx:1:1] |
55 | 55 | 1 │ Promise.race([]) |
56 | 56 | · ──────────────── |
57 | 57 | ╰──── |
58 | | - help: Return the promise or chain a catch() |
| 58 | + help: Return the promise or chain a `catch()`. |
59 | 59 |
|
60 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 60 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
61 | 61 | ╭─[catch_or_return.tsx:1:1] |
62 | 62 | 1 │ frank().then(to).catch(fn).then(foo) |
63 | 63 | · ──────────────────────────────────── |
64 | 64 | ╰──── |
65 | | - help: Return the promise or chain a catch() |
| 65 | + help: Return the promise or chain a `catch()`. |
66 | 66 |
|
67 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 67 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
68 | 68 | ╭─[catch_or_return.tsx:1:1] |
69 | 69 | 1 │ frank().finally(fn) |
70 | 70 | · ─────────────────── |
71 | 71 | ╰──── |
72 | | - help: Return the promise or chain a catch() |
| 72 | + help: Return the promise or chain a `catch()`. |
73 | 73 |
|
74 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 74 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
75 | 75 | ╭─[catch_or_return.tsx:1:1] |
76 | 76 | 1 │ frank().then(to).finally(fn) |
77 | 77 | · ──────────────────────────── |
78 | 78 | ╰──── |
79 | | - help: Return the promise or chain a catch() |
| 79 | + help: Return the promise or chain a `catch()`. |
80 | 80 |
|
81 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 81 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
82 | 82 | ╭─[catch_or_return.tsx:1:1] |
83 | 83 | 1 │ frank().then(go).catch(doIt).finally(fn) |
84 | 84 | · ──────────────────────────────────────── |
85 | 85 | ╰──── |
86 | | - help: Return the promise or chain a catch() |
| 86 | + help: Return the promise or chain a `catch()`. |
87 | 87 |
|
88 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 88 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
89 | 89 | ╭─[catch_or_return.tsx:1:1] |
90 | 90 | 1 │ frank().then(go).then().then().then().catch(doIt).finally(fn) |
91 | 91 | · ───────────────────────────────────────────────────────────── |
92 | 92 | ╰──── |
93 | | - help: Return the promise or chain a catch() |
| 93 | + help: Return the promise or chain a `catch()`. |
94 | 94 |
|
95 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 95 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
96 | 96 | ╭─[catch_or_return.tsx:1:1] |
97 | 97 | 1 │ frank().then(go).then().catch(function() { /* why bother */ }).finally(fn) |
98 | 98 | · ────────────────────────────────────────────────────────────────────────── |
99 | 99 | ╰──── |
100 | | - help: Return the promise or chain a catch() |
| 100 | + help: Return the promise or chain a `catch()`. |
101 | 101 |
|
102 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 102 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
103 | 103 | ╭─[catch_or_return.tsx:1:16] |
104 | 104 | 1 │ function a() { frank().then(go) } |
105 | 105 | · ──────────────── |
106 | 106 | ╰──── |
107 | | - help: Return the promise or chain a catch() |
| 107 | + help: Return the promise or chain a `catch()`. |
108 | 108 |
|
109 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 109 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
110 | 110 | ╭─[catch_or_return.tsx:1:16] |
111 | 111 | 1 │ function a() { frank().then(go).then().then().then() } |
112 | 112 | · ───────────────────────────────────── |
113 | 113 | ╰──── |
114 | | - help: Return the promise or chain a catch() |
| 114 | + help: Return the promise or chain a `catch()`. |
115 | 115 |
|
116 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 116 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
117 | 117 | ╭─[catch_or_return.tsx:1:16] |
118 | 118 | 1 │ function a() { frank().then(go).then()} |
119 | 119 | · ─────────────────────── |
120 | 120 | ╰──── |
121 | | - help: Return the promise or chain a catch() |
| 121 | + help: Return the promise or chain a `catch()`. |
122 | 122 |
|
123 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 123 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
124 | 124 | ╭─[catch_or_return.tsx:1:16] |
125 | 125 | 1 │ function a() { frank.then(go).then(to) } |
126 | 126 | · ─────────────────────── |
127 | 127 | ╰──── |
128 | | - help: Return the promise or chain a catch() |
| 128 | + help: Return the promise or chain a `catch()`. |
129 | 129 |
|
130 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 130 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
131 | 131 | ╭─[catch_or_return.tsx:1:1] |
132 | 132 | 1 │ frank().then(go).catch(doIt).finally(fn).then(foo) |
133 | 133 | · ────────────────────────────────────────────────── |
134 | 134 | ╰──── |
135 | | - help: Return the promise or chain a catch() |
| 135 | + help: Return the promise or chain a `catch()`. |
136 | 136 |
|
137 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 137 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
138 | 138 | ╭─[catch_or_return.tsx:1:1] |
139 | 139 | 1 │ frank().then(go).catch(doIt).finally(fn).foobar(foo) |
140 | 140 | · ──────────────────────────────────────────────────── |
141 | 141 | ╰──── |
142 | | - help: Return the promise or chain a catch() |
| 142 | + help: Return the promise or chain a `catch()`. |
143 | 143 |
|
144 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected done or return |
| 144 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `done` or `return`. |
145 | 145 | ╭─[catch_or_return.tsx:1:1] |
146 | 146 | 1 │ frank().then(go) |
147 | 147 | · ──────────────── |
148 | 148 | ╰──── |
149 | | - help: Return the promise or chain a done() |
| 149 | + help: Return the promise or chain a `done()`. |
150 | 150 |
|
151 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected done or return |
| 151 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `done` or `return`. |
152 | 152 | ╭─[catch_or_return.tsx:1:1] |
153 | 153 | 1 │ frank().catch(go) |
154 | 154 | · ───────────────── |
155 | 155 | ╰──── |
156 | | - help: Return the promise or chain a done() |
| 156 | + help: Return the promise or chain a `done()`. |
157 | 157 |
|
158 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 158 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
159 | 159 | ╭─[catch_or_return.tsx:1:1] |
160 | 160 | 1 │ frank().catch(go).someOtherMethod() |
161 | 161 | · ─────────────────────────────────── |
162 | 162 | ╰──── |
163 | | - help: Return the promise or chain a catch() |
| 163 | + help: Return the promise or chain a `catch()`. |
164 | 164 |
|
165 | | - ⚠ eslint-plugin-promise(catch-or-return): eslint-plugin-promise(catch-or-return): Expected catch or return |
| 165 | + ⚠ eslint-plugin-promise(catch-or-return): Expected `catch` or `return`. |
166 | 166 | ╭─[catch_or_return.tsx:1:1] |
167 | 167 | 1 │ frank()['catch'](go).someOtherMethod() |
168 | 168 | · ────────────────────────────────────── |
169 | 169 | ╰──── |
170 | | - help: Return the promise or chain a catch() |
| 170 | + help: Return the promise or chain a `catch()`. |
0 commit comments