Skip to content

Commit

Permalink
Disable @typescript-lint/noexplicit-any eslint rule in pages code
Browse files Browse the repository at this point in the history
This PR disables the `@typescript-lint/noexplicit-any` eslint rule in pages code. The Pages team should fix this, since it's causing noise in our PRs. I've also filed an issue to fix this at #201.
  • Loading branch information
threepointone authored and petebacondarwin committed Jan 7, 2022
1 parent 2f7e1b2 commit e26781f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-hounds-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Disable @typescript-lint/noexplicit-any eslint rule in pages code
2 changes: 2 additions & 0 deletions packages/wrangler/pages/functions/filepath-routing.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

import path from "path";
import fs from "fs/promises";
import { transform } from "esbuild";
Expand Down
2 changes: 2 additions & 0 deletions packages/wrangler/pages/functions/routes.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 2 additions & 0 deletions packages/wrangler/pages/functions/template-worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

import { match } from "path-to-regexp";
import type { HTTPMethod } from "./routes";

Expand Down

0 comments on commit e26781f

Please sign in to comment.