Repository navigation
chore(lint): adopt the Cloudflare Oxlint preset - #3562
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
CLI artifact sizes (
|
| 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%) |
🚀 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 deploymentPreview Deployments by commit
|
3da6f7b to
d0f8799
Compare
Preview binary sizes (
|
| 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.
Registry bridge build (
|
| 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 | iexOr 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 mainOr 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 migrateOr 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.b0bd0992bd7eafe6d6952be9ec508a12aad5d667pnpm 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"
}
}
🐳 Docker preview imageBuilt from this PR's registry bridge build:
# 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-3562Quick check: docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3562 vp --versionSee docs/guide/docker.md for usage. |
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>
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>
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>
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>
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>
The repository now uses
@cloudflare/oxlint-config/vite-plusalongside its existinge18erules. 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.0from thepnpmrelease-age limit for this dependency.