Skip to content

chore(lint): adopt the Cloudflare Oxlint preset - #3562

Merged
fengmk2 merged 3 commits into
mainfrom
codex/cloudflare-repo-lint
Nov 24, 2026
Merged

fengmk2 merged 3 commits into
mainfrom
codex/cloudflare-repo-lint

Conversation

@fengmk2

@fengmk2 fengmk2 commented Nov 24, 2026

Copy link
Copy Markdown
Member

The repository now uses @cloudflare/oxlint-config/vite-plus alongside its existing e18e rules. This gives the CLI, workspace packages, and scripts a common set of rules for handling promises and checking types.

The CLI and tooling now check the fields they read from JSON and YAML before using them. File-specific settings account for Vue compiler globals, CommonJS fixtures, and test helpers.

The workspace exempts only @cloudflare/oxlint-config@0.2.0 from the pnpm release-age limit for this dependency.

@socket-security

socket-security Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​cloudflare/​oxlint-config@​0.2.0951009994100

View full report

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: b0bd099

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (b0bd099)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.38 MiB 2.40 MiB +14.64 KiB (+0.60%)
packages/core/dist Directory total 4.11 MiB 4.11 MiB 0 B (0.00%)
Combined package dist Directory total 6.49 MiB 6.51 MiB +14.64 KiB (+0.22%)
vp (Linux x64) Binary 8.57 MiB 8.57 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.92 MiB 3.92 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 37.31 MiB 37.31 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 14.91 MiB 14.91 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 5.61 MiB 5.61 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.35 MiB 3.35 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 43.83 MiB 43.83 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 19.04 MiB 19.04 MiB 0 B (0.00%)
vp (Windows x64) Binary 6.65 MiB 6.65 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.03 MiB 3.03 MiB -1 B (-0.00%)
NAPI (Windows x64) Binary 33.25 MiB 33.25 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 13.64 MiB 13.64 MiB +4 B (+0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.69 MiB 4.69 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB 0 B (0.00%)

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-cloudflare-repo-lint-viteplus-dev.voidzero-docs.workers.dev (commit b0bd099)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://1d1b5c58-viteplus-dev.voidzero-docs.workers.dev b0bd099 2026-11-24T07:54:02.670Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://dccf2cfd-viteplus-dev.voidzero-docs.workers.dev 60d328d 2026-11-24T07:31:55.360Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a0a75c97-viteplus-dev.voidzero-docs.workers.dev d0f8799 2026-11-24T07:15:37.740Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9a978ab3-viteplus-dev.voidzero-docs.workers.dev 3da6f7b 2026-11-24T02:32:19.441Z Visit the dashboard ↗

@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Nov 24, 2026
@fengmk2 fengmk2 self-assigned this Nov 24, 2026
@fengmk2
fengmk2 force-pushed the codex/cloudflare-repo-lint branch from 3da6f7b to d0f8799 Compare November 24, 2026 07:14
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Nov 24, 2026
@fengmk2

fengmk2 commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

@fengmk2
fengmk2 marked this pull request as ready for review November 24, 2026 07:43
@fengmk2
fengmk2 requested a review from cpojer November 24, 2026 07:43
@fengmk2 fengmk2 added preview-build Publish this PR's commits to the registry bridge as preview builds and removed preview-build Publish this PR's commits to the registry bridge as preview builds labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview binary sizes (b0bd099)

Compared with the latest stable release, v1.8.0. Preview build.
Each row measures one binary. Negative changes mean a smaller preview binary.

Binary Latest release Preview Change
vp (macOS ARM64) 5.61 MiB 5.61 MiB 0 B (0.00%)
NAPI (macOS ARM64) 43.80 MiB 43.80 MiB 0 B (0.00%)
vp (macOS x64) 7.12 MiB 7.12 MiB 0 B (0.00%)
NAPI (macOS x64) 49.23 MiB 49.23 MiB 0 B (0.00%)
vp (Linux ARM64 GNU) 7.10 MiB 7.10 MiB 0 B (0.00%)
NAPI (Linux ARM64 GNU) 33.13 MiB 33.13 MiB -4.00 KiB (-0.01%)
vp (Linux ARM64 musl) 7.18 MiB 7.18 MiB 0 B (0.00%)
NAPI (Linux ARM64 musl) 32.34 MiB 32.34 MiB 0 B (0.00%)
vp (Linux x64 GNU) 8.57 MiB 8.57 MiB 0 B (0.00%)
NAPI (Linux x64 GNU) 37.23 MiB 37.23 MiB 0 B (0.00%)
vp (Linux x64 musl) 8.64 MiB 8.64 MiB 0 B (0.00%)
NAPI (Linux x64 musl) 36.42 MiB 36.42 MiB 0 B (0.00%)
vp (Windows x64) 6.66 MiB 6.66 MiB 0 B (0.00%)
NAPI (Windows x64) 32.89 MiB 32.89 MiB 0 B (0.00%)
Trampoline (Windows x64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows x64) 4.70 MiB 4.70 MiB 0 B (0.00%)
vp (Windows ARM64) 5.87 MiB 5.87 MiB 0 B (0.00%)
NAPI (Windows ARM64) 29.02 MiB 29.02 MiB +4.00 KiB (+0.01%)
Trampoline (Windows ARM64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows ARM64) 3.87 MiB 3.87 MiB 0 B (0.00%)
gzip -9 sizes
Binary Latest release Preview Change
vp (macOS ARM64) 3.35 MiB 3.35 MiB -226 B (-0.01%)
NAPI (macOS ARM64) 19.03 MiB 19.03 MiB -634 B (-0.00%)
vp (macOS x64) 3.53 MiB 3.53 MiB -79 B (-0.00%)
NAPI (macOS x64) 20.33 MiB 20.33 MiB -1.33 KiB (-0.01%)
vp (Linux ARM64 GNU) 3.85 MiB 3.85 MiB +249 B (+0.01%)
NAPI (Linux ARM64 GNU) 14.13 MiB 14.13 MiB +1.82 KiB (+0.01%)
vp (Linux ARM64 musl) 3.88 MiB 3.88 MiB +69 B (+0.00%)
NAPI (Linux ARM64 musl) 13.82 MiB 13.83 MiB +4.12 KiB (+0.03%)
vp (Linux x64 GNU) 3.92 MiB 3.92 MiB +190 B (+0.00%)
NAPI (Linux x64 GNU) 14.87 MiB 14.87 MiB -272 B (-0.00%)
vp (Linux x64 musl) 3.95 MiB 3.95 MiB +412 B (+0.01%)
NAPI (Linux x64 musl) 14.54 MiB 14.54 MiB +158 B (+0.00%)
vp (Windows x64) 3.03 MiB 3.03 MiB -54 B (-0.00%)
NAPI (Windows x64) 13.50 MiB 13.50 MiB +1.84 KiB (+0.01%)
Trampoline (Windows x64) 7.14 KiB 7.14 KiB +1 B (+0.01%)
Installer (Windows x64) 2.25 MiB 2.25 MiB +6 B (+0.00%)
vp (Windows ARM64) 2.90 MiB 2.90 MiB -320 B (-0.01%)
NAPI (Windows ARM64) 12.79 MiB 12.79 MiB +655 B (+0.00%)
Trampoline (Windows ARM64) 6.92 KiB 6.93 KiB +1 B (+0.01%)
Installer (Windows ARM64) 2.15 MiB 2.15 MiB +15 B (+0.00%)

Raw sizes are uncompressed file sizes. gzip sizes recompress each binary at level 9; they are not package or download archive sizes.
The baseline uses published release files, including NAPI packages from npm at the same version. Build versions and toolchains can affect the difference.

@github-actions

Copy link
Copy Markdown
Contributor

Registry bridge build (b0bd099)

This commit build is published to the registry bridge, which serves these as ordinary npm versions (every other package proxies to npmjs):

Package Version
vite-plus 0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667
@voidzero-dev/vite-plus-core 0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667
create-vite-plus 0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667

Install the Vite+ CLI built from this commit, then migrate a project:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/b0bd0992bd7eafe6d6952be9ec508a12aad5d667/packages/cli/install.sh | VP_PR_VERSION=3562 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/b0bd0992bd7eafe6d6952be9ec508a12aad5d667/packages/cli/install-legacy.sh bash
# Windows (PowerShell)
$env:VP_PR_VERSION="3562"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/b0bd0992bd7eafe6d6952be9ec508a12aad5d667/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/b0bd0992bd7eafe6d6952be9ec508a12aad5d667/packages/cli/install.ps1 | iex

Or install with Homebrew (macOS / glibc Linux):

These commands use the formula and binary from this published commit. Replace brew install with brew reinstall if the tap package is already installed.
If Homebrew Core’s vite-plus is installed, run brew uninstall vite-plus first. This keeps your user data; do not run vp implode to switch installations.

(
  set -eu
  export HOMEBREW_NO_AUTO_UPDATE=1
  export HOMEBREW_VP_PR_VERSION=b0bd0992bd7eafe6d6952be9ec508a12aad5d667
  brew tap voidzero-dev/vite-plus https://github.com/voidzero-dev/vite-plus
  preview_tap="$(brew --repository voidzero-dev/vite-plus)"
  git -C "$preview_tap" fetch --depth=1 https://github.com/voidzero-dev/vite-plus.git "$HOMEBREW_VP_PR_VERSION"
  git -C "$preview_tap" switch --detach "$HOMEBREW_VP_PR_VERSION"
  brew install voidzero-dev/vite-plus/vp
  brew test voidzero-dev/vite-plus/vp
  "$(brew --prefix)/bin/vp"
)

The tap stays at the tested commit. Return it to main after testing:

git -C "$(brew --repository voidzero-dev/vite-plus)" switch main

Or download the standalone Windows installer built from this commit:

Architecture Installer
x64 vp-setup-x86_64-pc-windows-msvc.exe
Arm64 vp-setup-aarch64-pc-windows-msvc.exe

GitHub requires you to sign in and downloads each installer as a ZIP artifact. Extract vp-setup.exe, then run it against this preview build:

.\vp-setup.exe --version "0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667" --registry "https://registry-bridge.viteplus.dev/"

After installing, upgrade the current project's vite-plus to this test build with:

vp migrate

Or create a new project from this commit without installing the CLI:

export npm_config_registry=https://registry-bridge.viteplus.dev/ pnpm_config_registry=https://registry-bridge.viteplus.dev/
pnpm create vite-plus@0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667 # or: npm create vite-plus@0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667
$env:npm_config_registry="https://registry-bridge.viteplus.dev/"; $env:pnpm_config_registry="https://registry-bridge.viteplus.dev/"
pnpm create vite-plus@0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667 # or: npm create vite-plus@0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667

pnpm 11+ reads pnpm_config_registry, npm and older pnpm read npm_config_registry. The new project pins this build, so keep the registry set for later installs, or configure it as below.

Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:

Package manager Registry config
npm / pnpm / Bun .npmrc: registry=https://registry-bridge.viteplus.dev/
Yarn (v2+) .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/"

Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):

{
  "devDependencies": {
    "vite-plus": "0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667",
    "vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.b0bd0992bd7eafe6d6952be9ec508a12aad5d667"
  }
}

@github-actions

Copy link
Copy Markdown
Contributor

🐳 Docker preview image

Built from this PR's registry bridge build:

Image Compressed size
ghcr.io/voidzero-dev/vite-plus:pr-3562 229MB
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-3562 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3562

Quick check:

docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3562 vp --version

See docs/guide/docker.md for usage.

@fengmk2
fengmk2 merged commit a9b17ec into main Nov 24, 2026
272 of 275 checks passed
@fengmk2
fengmk2 deleted the codex/cloudflare-repo-lint branch November 24, 2026 08:44
fengmk2 added a commit that referenced this pull request Nov 25, 2026
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the
selection with the resolved tsdown dts options instead of unknown
records, parse tsconfig files through the shared JSON helpers, and drop
the type assertions in pack-bin and the tests.

Track only the current `extends` path when reading
isolatedDeclarations, so a base that two `extends` entries share is
not reported as a cycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2 added a commit that referenced this pull request Nov 25, 2026
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the
selection with the resolved tsdown dts options instead of unknown
records, parse tsconfig files through the shared JSON helpers, and drop
the type assertions in pack-bin and the tests.

Track only the current `extends` path when reading
isolatedDeclarations, so a base that two `extends` entries share is
not reported as a cycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2 added a commit that referenced this pull request Nov 25, 2026
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the
selection with the resolved tsdown dts options instead of unknown
records, parse tsconfig files through the shared JSON helpers, and drop
the type assertions in pack-bin and the tests.

Track only the current `extends` path when reading
isolatedDeclarations, so a base that two `extends` entries share is
not reported as a cycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2 added a commit that referenced this pull request Nov 25, 2026
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the
selection with the resolved tsdown dts options instead of unknown
records, parse tsconfig files through the shared JSON helpers, and drop
the type assertions in pack-bin and the tests.

Track only the current `extends` path when reading
isolatedDeclarations, so a base that two `extends` entries share is
not reported as a cycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2 added a commit that referenced this pull request Nov 25, 2026
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the
selection with the resolved tsdown dts options instead of unknown
records, parse tsconfig files through the shared JSON helpers, and drop
the type assertions in pack-bin and the tests.

Track only the current `extends` path when reading
isolatedDeclarations, so a base that two `extends` entries share is
not reported as a cycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants