Skip to content

[vite-plugin v1 backport] Adopt shared Cloudflare lint preset - #17105

Open
petebacondarwin wants to merge 3 commits into
vite-plugin-v1from
codex/vite-v1-backport-17079
Open

petebacondarwin wants to merge 3 commits into
vite-plugin-v1from
codex/vite-v1-backport-17079

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Backports #17079 to the retained v1 workspace. Adopt the original @cloudflare/oxlint-config preset, Oxlint 1.94 and tsrs backend, with the original explicit correctness rules, test strictness and temporary baseline exceptions. This changes the tooling that checks plugin and private support code; no published API or changeset is needed.

The only v1 configuration adaptation is pruning paths/overrides for public sibling packages absent from this branch. Existing v1 ignores and E2E/custom-plugin rules are preserved, and private lint-config-shared stays workspace:*. All retained upstream rule settings are copied directly; no additional rule exceptions or source fixes are introduced. The lockfile was regenerated with pnpm install.

Validation: pnpm check passes all 58 tasks, including builds, types, lint and formatting; pnpm test:ci passes. Temporary failing probes confirm both custom rules (Wrangler namespace imports and unsafe command execution) and explicit-any/non-null restrictions in tests still report. No permanent implementation-mirroring tests were added.

Depends on #17054 in native GitHub stack #17084 rooted at vite-plugin-v1. Its published runtime increment and workers-utils /config import adaptation are inherited, not repeated here.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: repository lint tooling only; validation is described above.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal maintenance tooling does not change the plugin API.

Note

This is a contribution from an AI agent: Codex.


Devin Review

@petebacondarwin petebacondarwin added the ci:no-changeset-required Skip pull request checks for a valid changeset label Nov 21, 2026
@changeset-bot

changeset-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3947d97

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@workers-devprod
workers-devprod requested review from a team and dario-piotrowicz and removed request for a team November 21, 2026 14:09
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@NuroDev @petebacondarwin, please check this v1 backport of #17079 and approve if it looks good. You are the verified original author and latest qualifying human ant-core approver before merge (deduplicated where applicable).

The original shared lint preset, explicit correctness rules and temporary baseline exceptions are retained. V1 only prunes configuration paths for absent public sibling packages. Full build/types/checks and package tests pass; four temporary probes verify existing project/test rules.

Native GitHub stack #17084 is rooted at vite-plugin-v1. Earlier runtime and dependency coverage is supplied by #17054; no duplicate dependency PR is created.

@pkg-pr-new

pkg-pr-new Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@cloudflare/vite-plugin@17105

commit: 3947d97

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Superseded by the review of 17da507f.

This review, of 88c73a87

✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.


📖 AGENTS.md: ✅ LGTM

This change does not affect the agent guidance.


📋 Code Quality: ✅ LGTM

All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.


⚡ Performance: ✅ LGTM

No runtime performance impact.


📝 Documentation: ✅ LGTM

No documentation changes needed.


Reviewed commit: 88c73a87

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17079 branch from 88c73a8 to 17da507 Compare November 21, 2026 14:11
devin-ai-integration[bot]

This comment was marked as resolved.

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Superseded by the review of 91171455.

This review, of 17da507f

✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.


📖 AGENTS.md: ✅ LGTM

This change does not affect the agent guidance.


📋 Code Quality: ✅ LGTM

All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.


⚡ Performance: ✅ LGTM

No runtime performance impact.


📝 Documentation: ✅ LGTM

No documentation changes needed.


Reviewed commit: 17da507f — same changes as 88c73a87, so this is that commit's review (no new review was run; line numbers are as of 88c73a87)

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

Devin Review found 2 potential issues.

Devin Review

Comment thread package.json Resolved
Comment thread oxlint.config.mts Resolved
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17079 branch from 17da507 to 9117145 Compare November 21, 2026 22:15

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Superseded by the review of 3890c0ad.

This review, of 91171455

✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.


📖 AGENTS.md: ✅ LGTM

This change does not affect the agent guidance.


📋 Code Quality: ✅ LGTM

All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.


⚡ Performance: ✅ LGTM

No runtime performance impact.


📝 Documentation: ✅ LGTM

No documentation changes needed.


Reviewed commit: 91171455 — same changes as 88c73a87, so this is that commit's review (no new review was run; line numbers are as of 88c73a87)

Comment thread oxlint.config.mts Resolved
Comment thread oxlint.config.mts Resolved
Comment thread oxlint.config.mts Resolved

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

Devin Review

Comment thread oxlint.config.mts Resolved
clanky-the-clanker[bot]

This comment was marked as resolved.

Base automatically changed from codex/vite-v1-backport-17031 to vite-plugin-v1 November 23, 2026 18:42
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17079 branch from 3890c0a to f0b2bab Compare November 23, 2026 18:42

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Superseded by the review of 3947d976.

This review, of f0b2bab0

💬 Approved with comments — This is a lint-tooling-only change that keeps all project-specific rules. One WARNING: the newly added tools/** override is mis-indented and will probably fail the format check.

Findings: 1 warning

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #17105.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] The `tools/**` override block is indented two extra levels, so `oxfmt --check` in `pnpm check` will probably fail
- **File:** oxlint.config.mts:143

📋 Code Quality: ⚠️ 1 warning

The new tools/** override block is mis-indented and will probably fail the oxfmt format check.

Recommendation: 📝 Minor Comments

  • [WARNING] The tools/** override block is indented two extra levels, so oxfmt --check in pnpm check will probably fail (oxlint.config.mts:143)
View full review
  • oxlint.config.mts:143-147: the tools/** override added in 3890c0a puts files:/rules: at four tabs and the rule entries at six. The sibling overrides use three and four. .oxfmtrc.jsonc uses tabs and does not ignore this file, so check:format (oxfmt --check, package.json:27) will probably flag it.

Everything else checks out. All old rules and ignores are carried over, the explicit correctness and test-strictness overrides are present, and the dependency pinning is correct.


✅ All other checks passed

🔒 Security: ✅ LGTM

This change only touches lint configuration and dev dependencies. The custom security rules (no-unsafe-command-execution, no-direct-recursive-rm, require-description-when-disabling) remain enabled.


📖 AGENTS.md: ✅ LGTM

This change does not affect the agent guidance.


⚡ Performance: ✅ LGTM

No runtime performance impact.


📝 Documentation: ✅ LGTM

No documentation changes needed.


Reviewed commit: f0b2bab0 — same changes as 3890c0ad, so this is that commit's review (no new review was run; line numbers are as of 3890c0ad)

Co-authored-by: clanky-the-clanker[bot] <342202840+clanky-the-clanker[bot]@users.noreply.github.com>

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Approved — This pull request only changes lint tooling, and every project-specific rule is preserved. The one earlier WARNING (indentation of the tools/** override) is fixed, and there are no new findings.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

This pull request only touches lint configuration and dev dependencies. The custom security lint rules are still enabled (no-unsafe-command-execution, no-direct-recursive-rm, require-description-when-disabling, no-wrangler-named-imports). The only exception remains the existing one for the e2e directory.


📖 AGENTS.md: ✅ LGTM

This change does not affect the agent guidance.


📋 Code Quality: ✅ LGTM

The tools/** override at oxlint.config.mts:144-150 now uses the same indentation as its sibling overrides. Every rule, ignore and override from the old config is carried over, and lint-config-shared stays workspace:*.


⚡ Performance: ✅ LGTM

Lint tooling only.


📝 Documentation: ✅ LGTM

No documentation changes needed.


Reviewed commit: 3947d976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-changeset-required Skip pull request checks for a valid changeset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants