Skip to content

Commit 5af045b

Browse files
committed
chore: lint
1 parent 1776ac4 commit 5af045b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Diff for: src/event/event.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface WebEventContext {
1515
}
1616

1717
export class H3Event<
18-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1918
_RequestT extends EventHandlerRequest = EventHandlerRequest,
2019
> implements Pick<FetchEvent, "respondWith">
2120
{

Diff for: src/utils/proxy.ts

-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ export function getProxyRequestHeaders(event: H3Event) {
179179
*/
180180
export function fetchWithEvent<
181181
T = unknown,
182-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
183182
_R = any,
184183
F extends (req: RequestInfo | URL, opts?: any) => any = typeof fetch,
185184
>(

Diff for: test/utils.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ describe("", () => {
238238
{ path: "//foo", url: "http://127.0.0.1/foo" },
239239
{ path: "//foo.com//bar", url: "http://127.0.0.1/foo.com//bar" },
240240
{ path: "///foo", url: "http://127.0.0.1/foo" },
241-
{ path: "\\foo", url: "http://127.0.0.1/foo" },
242-
{ path: "\\\\foo", url: "http://127.0.0.1/foo" },
243-
{ path: "\\/foo", url: "http://127.0.0.1/foo" },
244-
{ path: "/\\foo", url: "http://127.0.0.1/foo" },
241+
{ path: String.raw`\foo`, url: "http://127.0.0.1/foo" },
242+
{ path: String.raw`\\foo`, url: "http://127.0.0.1/foo" },
243+
{ path: String.raw`\/foo`, url: "http://127.0.0.1/foo" },
244+
{ path: String.raw`/\foo`, url: "http://127.0.0.1/foo" },
245245
{ path: "/test", host: "example.com", url: "http://example.com/test" },
246246
{
247247
path: "/test",

0 commit comments

Comments
 (0)