Repository navigation
Conversation
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-tsrs-lint-bench-viteplus-dev.voidzero-docs.workers.dev (commit ce98494)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
fengmk2
commented
Nov 5, 2026
| This path is powered by [tsgolint](https://github.com/oxc-project/tsgolint) on top of the TypeScript 7 (aka TypeScript Go) toolchain. It gives Oxlint access to type information and allows type checking directly via `vp lint` and `vp check`. | ||
| This experimental build uses [tsrs](https://github.com/oxc-project/tsrs), a Rust port of the TypeScript 7 compiler. Its `tsrs-lint` executable gives Oxlint access to type information and allows type checking directly via `vp lint` and `vp check`. | ||
|
|
||
| ### Select another backend |
Contributor
CLI artifact sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
packages/cli/dist |
Directory total | 2.33 MiB | 2.33 MiB | +94 B (+0.00%) |
packages/core/dist |
Directory total | 4.08 MiB | 4.08 MiB | 0 B (0.00%) |
| Combined package dist | Directory total | 6.41 MiB | 6.41 MiB | +94 B (+0.00%) |
vp (Linux x64) |
Binary | 8.31 MiB | 8.31 MiB | 0 B (0.00%) |
vp (Linux x64) |
gzip -9 | 3.80 MiB | 3.80 MiB | +13 B (+0.00%) |
| NAPI (Linux x64) | Binary | 36.20 MiB | 36.20 MiB | 0 B (0.00%) |
| NAPI (Linux x64) | gzip -9 | 14.44 MiB | 14.44 MiB | -34 B (-0.00%) |
vp (macOS ARM64) |
Binary | 5.42 MiB | 5.42 MiB | 0 B (0.00%) |
vp (macOS ARM64) |
gzip -9 | 3.23 MiB | 3.23 MiB | -132 B (-0.00%) |
| NAPI (macOS ARM64) | Binary | 43.01 MiB | 43.01 MiB | 0 B (0.00%) |
| NAPI (macOS ARM64) | gzip -9 | 18.64 MiB | 18.64 MiB | -44 B (-0.00%) |
vp (Windows x64) |
Binary | 6.15 MiB | 6.16 MiB | +512 B (+0.01%) |
vp (Windows x64) |
gzip -9 | 2.85 MiB | 2.85 MiB | +2 B (+0.00%) |
| NAPI (Windows x64) | Binary | 32.32 MiB | 32.32 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | gzip -9 | 13.22 MiB | 13.22 MiB | +50 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.66 MiB | 4.66 MiB | 0 B (0.00%) |
| Installer (Windows x64) | gzip -9 | 2.23 MiB | 2.23 MiB | +1 B (+0.00%) |
fengmk2
force-pushed
the
codex/tsrs-lint-bench
branch
from
November 5, 2026 07:24
f3bb020 to
22b07bd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vp lintcurrently usestsgolintfor type-aware rules and TypeScript diagnostics. This draft selectstsrs-lintby default.The CLI pins
tsrs@0.22.0-ts7.1.0-betaas a production dependency and resolves its bundled executable. Version output and toolchain metadata reporttsrs. The global version command also supports older installations that usetsgolint. The related RFCs describe the backend, overrides, and platform limits.No environment variable is required for the default backend:
For
vp check, enablelint.options.typeAwareandlint.options.typeCheckin the project config. ExplicitOXLINT_TSGOLINT_PATHoverrides take precedence. To select the comparison's Go backend:vp add -D oxlint-tsgolint@7.0.2005 OXLINT_TSGOLINT_PATH="$PWD/node_modules/.bin/tsgolint" vp lint --type-aware --type-checkoxlint-tsgolintremains a development dependency for comparisons. The benchmark selects it explicitly for the Go baseline.Codespaces performance
Both backends ran on one Codespace with four vCPUs and 16 GB RAM. The main run used an AMD EPYC 9V74. The comparison uses Oxlint
1.91.0,oxlint-tsgolint@7.0.2005, andtsrs@0.22.0-ts7.1.0-beta.Elapsed time is the median of ten paired runs after warm-ups:
vp checkvp check† After the Codespace restarted, this clean timing repetition used an EPYC 7763. Both backends within each row used the same CPU. The CPU change prevents a strict comparison of absolute times across workloads.
Peak memory is the median of five separate paired runs after warm-ups:
vp checkvp checkMemory is the sampled peak RSS of the CLI process tree, including child processes. Shared pages can count more than once. Sampling can miss short peaks. Timing runs exclude sampling overhead.
Vite+ used Node.js
24.22.2; vinext used Node.js26.13.0at249088af3. Lint used four threads. Vinext lint usedsortedchecker scheduling; full checks used default scheduling. The original JS plugin rules remain enabled, includingvinext-utils/prefer-shared-utils.The report contains ranges, raw samples, and the excluded timing set. The Codespaces recipe pins the source, dependencies, and method.
Smoke-test results
On macOS ARM64, 3,403 unit tests, 50 selected CLI snapshots, and five Rust version tests passed. One unit test was skipped. A fresh package installation worked without
oxlint-tsgolint. Smoke fixtures matched Go diagnostics, suppression comments, and automatic fixes. Nested tasks, version output, explicit overrides, and expected backend failures also passed.On Linux x64 with glibc, both backends passed all 12 validation commands and all 226 benchmark invocations, including warm-ups and the timing repetition. Full checks passed for Vite+ (385 source files) and vinext (1,828 source files).
The CLI JavaScript came from this branch. The local native binding and core artifacts came from published
1.5.0packages. These checks do not replace a full release build or establish complete compiler parity.Windows ARM64 limitation
tsrs@0.22.0-ts7.1.0-betadoes not provide a Windows ARM64 binary. This supported Vite+ target needs an upstream binary or an explicit fallback before release. This draft adds no automatic Go fallback. Other runtime targets still need validation; Windows executable resolution has unit coverage only.