Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 17, 2024
1 parent 1776ac4 commit 5af045b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/event/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface WebEventContext {
}

export class H3Event<
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_RequestT extends EventHandlerRequest = EventHandlerRequest,
> implements Pick<FetchEvent, "respondWith">
{
Expand Down
1 change: 0 additions & 1 deletion src/utils/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export function getProxyRequestHeaders(event: H3Event) {
*/
export function fetchWithEvent<
T = unknown,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_R = any,
F extends (req: RequestInfo | URL, opts?: any) => any = typeof fetch,
>(
Expand Down
8 changes: 4 additions & 4 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ describe("", () => {
{ path: "//foo", url: "http://127.0.0.1/foo" },
{ path: "//foo.com//bar", url: "http://127.0.0.1/foo.com//bar" },
{ path: "///foo", url: "http://127.0.0.1/foo" },
{ path: "\\foo", url: "http://127.0.0.1/foo" },
{ path: "\\\\foo", url: "http://127.0.0.1/foo" },
{ path: "\\/foo", url: "http://127.0.0.1/foo" },
{ path: "/\\foo", url: "http://127.0.0.1/foo" },
{ path: String.raw`\foo`, url: "http://127.0.0.1/foo" },
{ path: String.raw`\\foo`, url: "http://127.0.0.1/foo" },
{ path: String.raw`\/foo`, url: "http://127.0.0.1/foo" },
{ path: String.raw`/\foo`, url: "http://127.0.0.1/foo" },
{ path: "/test", host: "example.com", url: "http://example.com/test" },
{
path: "/test",
Expand Down

0 comments on commit 5af045b

Please sign in to comment.