Skip to content

Remove all removable eslint comments disabling no-restricted-imports from c3#13245

Merged
dario-piotrowicz merged 1 commit intomainfrom
dario/remove-no-restricted-imports-from-c3
Apr 2, 2026
Merged

Remove all removable eslint comments disabling no-restricted-imports from c3#13245
dario-piotrowicz merged 1 commit intomainfrom
dario/remove-no-restricted-imports-from-c3

Conversation

@dario-piotrowicz
Copy link
Copy Markdown
Member

@dario-piotrowicz dario-piotrowicz commented Apr 2, 2026

Removal of comments such as:

// eslint-disable-next-line no-restricted-imports

In the create-cloudflare package

Continuation from #13140, #13149 and #13164


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal refactoring

A picture of a cute animal (not mandatory, but encouraged)


Open with Devin

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: 19f6d4b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Apr 2, 2026
@workers-devprod workers-devprod requested review from a team and emily-shen and removed request for a team April 2, 2026 10:10
@workers-devprod
Copy link
Copy Markdown
Contributor

workers-devprod commented Apr 2, 2026

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Apr 2, 2026

Everything checks out. The changes are:

  1. Helper functions (framework-helpers.ts, workers-helpers.ts): Replace module-level import { expect } from "vitest" with import type { ExpectStatic } from "vitest", and add expect: ExpectStatic as a parameter to functions that use expect. The ExpectStatic type is the correct type for the test context's expect.

  2. Test files (frameworks.test.ts, workers.test.ts): Pass the test-context expect to the updated helper functions.

  3. to-exist.ts: Keeps the disable comment (necessarily) but adds a justification suffix (-- We need to import...), which is good practice.

  4. mocks.ts: Replaces expect.fail(...) with throw new Error(...) to eliminate the expect import. These are guard functions for developer errors, and throw new Error is a correct and semantically appropriate replacement.

No logic bugs, no missed call sites, no type mismatches.

LGTM

github run

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@13245

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@13245

miniflare

npm i https://pkg.pr.new/miniflare@13245

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@13245

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@13245

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@13245

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@13245

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@13245

wrangler

npm i https://pkg.pr.new/wrangler@13245

commit: 19f6d4b

@dario-piotrowicz dario-piotrowicz force-pushed the dario/remove-no-restricted-imports-from-c3 branch from 245daa0 to 19f6d4b Compare April 2, 2026 10:26
Copy link
Copy Markdown
Contributor

@workers-devprod workers-devprod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Apr 2, 2026
@dario-piotrowicz dario-piotrowicz added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit 10e731d Apr 2, 2026
59 of 60 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/remove-no-restricted-imports-from-c3 branch April 2, 2026 12:01
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants