|
1 | 1 | ---
|
2 | 2 | source: crates/oxc_linter/src/tester.rs
|
3 | 3 | ---
|
4 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 4 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
5 | 5 | ╭─[no_invalid_fetch_options.tsx:1:13]
|
6 | 6 | 1 │ fetch(url, {body})
|
7 | 7 | · ────
|
8 | 8 | ╰────
|
9 | 9 |
|
10 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 10 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
11 | 11 | ╭─[no_invalid_fetch_options.tsx:1:19]
|
12 | 12 | 1 │ new Request(url, {body})
|
13 | 13 | · ────
|
14 | 14 | ╰────
|
15 | 15 |
|
16 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 16 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
17 | 17 | ╭─[no_invalid_fetch_options.tsx:1:28]
|
18 | 18 | 1 │ fetch(url, {method: "GET", body})
|
19 | 19 | · ────
|
20 | 20 | ╰────
|
21 | 21 |
|
22 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 22 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
23 | 23 | ╭─[no_invalid_fetch_options.tsx:1:34]
|
24 | 24 | 1 │ new Request(url, {method: "GET", body})
|
25 | 25 | · ────
|
26 | 26 | ╰────
|
27 | 27 |
|
28 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 28 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
29 | 29 | ╭─[no_invalid_fetch_options.tsx:1:29]
|
30 | 30 | 1 │ fetch(url, {method: "HEAD", body})
|
31 | 31 | · ────
|
32 | 32 | ╰────
|
33 | 33 |
|
34 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 34 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
35 | 35 | ╭─[no_invalid_fetch_options.tsx:1:35]
|
36 | 36 | 1 │ new Request(url, {method: "HEAD", body})
|
37 | 37 | · ────
|
38 | 38 | ╰────
|
39 | 39 |
|
40 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 40 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
41 | 41 | ╭─[no_invalid_fetch_options.tsx:1:29]
|
42 | 42 | 1 │ fetch(url, {method: "head", body})
|
43 | 43 | · ────
|
44 | 44 | ╰────
|
45 | 45 |
|
46 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 46 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
47 | 47 | ╭─[no_invalid_fetch_options.tsx:1:35]
|
48 | 48 | 1 │ new Request(url, {method: "head", body})
|
49 | 49 | · ────
|
50 | 50 | ╰────
|
51 | 51 |
|
52 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 52 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
53 | 53 | ╭─[no_invalid_fetch_options.tsx:1:50]
|
54 | 54 | 1 │ const method = "head"; new Request(url, {method, body: "foo=bar"})
|
55 | 55 | · ────
|
56 | 56 | ╰────
|
57 | 57 |
|
58 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 58 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
59 | 59 | ╭─[no_invalid_fetch_options.tsx:1:44]
|
60 | 60 | 1 │ const method = "head"; fetch(url, {method, body: "foo=bar"})
|
61 | 61 | · ────
|
62 | 62 | ╰────
|
63 | 63 |
|
64 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 64 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
65 | 65 | ╭─[no_invalid_fetch_options.tsx:1:13]
|
66 | 66 | 1 │ fetch(url, {body}, extraArgument)
|
67 | 67 | · ────
|
68 | 68 | ╰────
|
69 | 69 |
|
70 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 70 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
71 | 71 | ╭─[no_invalid_fetch_options.tsx:1:19]
|
72 | 72 | 1 │ new Request(url, {body}, extraArgument)
|
73 | 73 | · ────
|
74 | 74 | ╰────
|
75 | 75 |
|
76 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 76 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
77 | 77 | ╭─[no_invalid_fetch_options.tsx:1:30]
|
78 | 78 | 1 │ fetch(url, {body: undefined, body: "foo=bar"});
|
79 | 79 | · ────
|
80 | 80 | ╰────
|
81 | 81 |
|
82 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 82 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
83 | 83 | ╭─[no_invalid_fetch_options.tsx:1:36]
|
84 | 84 | 1 │ new Request(url, {body: undefined, body: "foo=bar"});
|
85 | 85 | · ────
|
86 | 86 | ╰────
|
87 | 87 |
|
88 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 88 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
89 | 89 | ╭─[no_invalid_fetch_options.tsx:1:29]
|
90 | 90 | 1 │ fetch(url, {method: "post", body: "foo=bar", method: "HEAD"});
|
91 | 91 | · ────
|
92 | 92 | ╰────
|
93 | 93 |
|
94 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `HEAD` |
| 94 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "HEAD" |
95 | 95 | ╭─[no_invalid_fetch_options.tsx:1:35]
|
96 | 96 | 1 │ new Request(url, {method: "post", body: "foo=bar", method: "HEAD"});
|
97 | 97 | · ────
|
98 | 98 | ╰────
|
99 | 99 |
|
100 |
| - ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): The `body` is not allowed when method is `GET` |
| 100 | + ⚠ eslint-plugin-unicorn(no-invalid-fetch-options): "body" is not allowed when method is "GET" |
101 | 101 | ╭─[no_invalid_fetch_options.tsx:1:13]
|
102 | 102 | 1 │ fetch('/', {body: new URLSearchParams({ data: "test" })})
|
103 | 103 | · ────
|
|
0 commit comments