Skip to content

update linting rules and adjust code accordingly#208

Merged
mattjohnsonpint merged 2 commits into
mainfrom
mjp/lint
May 13, 2026
Merged

update linting rules and adjust code accordingly#208
mattjohnsonpint merged 2 commits into
mainfrom
mjp/lint

Conversation

@mattjohnsonpint

@mattjohnsonpint mattjohnsonpint commented May 13, 2026

Copy link
Copy Markdown
Contributor

Two linting rules were disabled that can now be re-enabled:

  • preserve-caught-error - ensures we don't throw away useful information when throwing an exception
  • @typescript-eslint/explicit-module-boundary-types - ensures public methods and exported functions declare return types (disabled for makeMockCtx since the returned mock is dynamically created)

Eslint's `preserve-caught-error` check is useful. Let's keep it on and adjust the locations where it is finding hits.
In most cases, the `@typescript-eslint/explicit-module-boundary-types` is useful and should be followed.  Not using it for `makeMockCtx`, since the return value is constructed dynamically.
@mattjohnsonpint
mattjohnsonpint requested a review from a team as a code owner May 13, 2026 16:26
@pkg-pr-new

pkg-pr-new Bot commented May 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/containers@208

commit: fc7e7f4

@mattjohnsonpint
mattjohnsonpint merged commit 2d032e9 into main May 13, 2026
9 checks passed
@mattjohnsonpint
mattjohnsonpint deleted the mjp/lint branch May 13, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants