diff --git a/.changeset/modern-hounds-fold.md b/.changeset/modern-hounds-fold.md new file mode 100644 index 000000000000..13d39c23716f --- /dev/null +++ b/.changeset/modern-hounds-fold.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +Disable @typescript-lint/noexplicit-any eslint rule in pages code diff --git a/packages/wrangler/pages/functions/filepath-routing.ts b/packages/wrangler/pages/functions/filepath-routing.ts index 6a20592b9834..3a0c06f791dd 100644 --- a/packages/wrangler/pages/functions/filepath-routing.ts +++ b/packages/wrangler/pages/functions/filepath-routing.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ + import path from "path"; import fs from "fs/promises"; import { transform } from "esbuild"; diff --git a/packages/wrangler/pages/functions/routes.ts b/packages/wrangler/pages/functions/routes.ts index 84526963681c..d7b386fb0963 100755 --- a/packages/wrangler/pages/functions/routes.ts +++ b/packages/wrangler/pages/functions/routes.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ + import path from "path"; import fs from "fs/promises"; import { isValidIdentifer, normalizeIdentifier } from "./identifiers"; diff --git a/packages/wrangler/pages/functions/template-worker.ts b/packages/wrangler/pages/functions/template-worker.ts index 7494a968fe53..6a494be33de3 100644 --- a/packages/wrangler/pages/functions/template-worker.ts +++ b/packages/wrangler/pages/functions/template-worker.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ + import { match } from "path-to-regexp"; import type { HTTPMethod } from "./routes";