Repository navigation
fix: restore line disable comments for type-aware diagnostics - #1271
Merged
Merged
Conversation
camc314
marked this pull request as ready for review
October 10, 2026 10:00
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 726a9563f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
Merge activity
|
Restore the original report ranges for `no-unnecessary-condition`, `no-unsafe-assignment`, `no-unsafe-return`, and `no-unsafe-type-assertion`. The labeled-range changes moved the main span to an operator or keyword while Oxlint displayed another range, breaking existing line disable comments on multiline expressions. Use one range per finding and move the type context into help text with guidance for fixing the code. Add the four issue repros and preserve optional-chain removal suggestions. Verified with Oxlint 1.87.0: both ESLint and Oxlint disable comments suppress all four findings without unused-directive warnings; removing the comments still reports all four. Fixes oxc-project/oxc#27534
graphite-app
Bot
force-pushed
the
codex/fix-single-range-diagnostics
branch
from
October 10, 2026 10:15
29cf475 to
a612891
Compare
fengmk2
added a commit
to vite-plus-ecosystem-ci/anywidget
that referenced
this pull request
Oct 13, 2026
oxlint-tsgolint 7.0.2004 (oxc-project/tsgolint#1271) restores line disable comments for type-aware diagnostics, so the v1.1.0-cycle workaround that moved the comment to the `} as T` line no longer applies.
fengmk2
added a commit
to vite-plus-ecosystem-ci/react-hookz-web
that referenced
this pull request
Oct 13, 2026
oxlint-tsgolint 7.0.2004 (oxc-project/tsgolint#1271) restores line disable comments for type-aware diagnostics, so the v1.1.0-cycle workaround that moved them to the `as` line no longer applies.
fengmk2
added a commit
to vite-plus-ecosystem-ci/notero
that referenced
this pull request
Oct 13, 2026
oxlint-tsgolint 7.0.2004 (oxc-project/tsgolint#1271) restores line disable comments for type-aware diagnostics, so the v1.1.0-cycle workaround that moved them to the `as` line no longer applies.
fengmk2
added a commit
to vite-plus-ecosystem-ci/dotabod-frontend
that referenced
this pull request
Oct 13, 2026
tsgolint 7.0.2004 restores line disable comments and original report ranges for type-aware diagnostics (oxc-project/tsgolint#1271), so the ratchet baseline built under 7.0.2003 no longer matches.
fengmk2
added a commit
to vite-plus-ecosystem-ci/dotabod-frontend
that referenced
this pull request
Oct 13, 2026
tsgolint 7.0.2004 restores line disable comments and original report ranges for type-aware diagnostics (oxc-project/tsgolint#1271), so the ratchet baseline built under 7.0.2003 no longer matches.
fengmk2
added a commit
to voidzero-dev/vite-plus
that referenced
this pull request
Oct 14, 2026
Vite+ 1.2 supports authenticated private npm registries and shows a new `vp run` summary that counts cache hits among cache-enabled tasks and reports successful tasks. It also verifies installer downloads, shows download progress in `vp upgrade`, and fixes task cache misses in pnpm projects and PowerShell exit status. ### Highlights - Support authenticated private npm registries ([#2624](#2624)), by @RSS1102. - The `vp run` summary now reads like `3/4 cache hit (75%), 9/10 successful, 2s saved.`: the cache hit rate leaves out tasks with caching disabled, and the count of successful tasks replaces the count of failed tasks ([vite-task#821](voidzero-dev/vite-task#821)), by @wan9chi. ### Features - The `install.sh` and `install.ps1` installers check each downloaded platform archive against the registry's SHA-512 `dist.integrity` before extracting it, and stop when the digest is missing or does not match ([#2949](#2949)), by @fengmk2. - `vp upgrade` shows a progress bar while it downloads the new platform package, instead of looking frozen on slow connections ([#2968](#2968)), by @kshanxs. - When a task is not cached because it wrote a file it also read, the summary says it `modified its inputs`, and `vp run --last-details` shows the `cache: { input, output }` exclusions that let it be cached. Detailed summaries show each cause of an error on its own line, and an invalid `--filter` glob reports its error once ([vite-task#783](voidzero-dev/vite-task#783), [vite-task#784](voidzero-dev/vite-task#784), [vite-task#761](voidzero-dev/vite-task#761), [vite-task#763](voidzero-dev/vite-task#763)), by @wan9chi. - The task runner can be built without file-access tracking on additional platforms. Tasks on those platforms must configure both `input` and `output` explicitly to be cached ([vite-task#829](voidzero-dev/vite-task#829)), by @mfechner. - Upgrade the bundled tools ([#2935](#2935), [#2977](#2977), [#2998](#2998), [#3021](#3021), [#3039](#3039)), by @voidzero-guard[bot] and @fengmk2: - `vite@8.3.3` to `vite@8.3.4`. - `rolldown@1.2.12` to `rolldown@1.2.13`. - `tsdown@0.23.0` to `tsdown@0.23.1`. - `vitest@5.0.3` to `vitest@5.0.4`. Vitest now turns on its on-disk caches by default, and `vp test` tasks run through `vp run` stay cacheable with them. - `oxlint@1.87.0` to `oxlint@1.88.0` and `oxfmt@0.72.0` to `oxfmt@0.73.0`. Oxfmt now also formats TOML in Markdown code blocks and frontmatter. The new lint and format versions can flag code that passed before, so run `vp fmt` after upgrading if CI runs `vp check`. - `vp migrate` keeps Prettier and continues the rest of the migration when the Prettier config uses a format the bundled Oxfmt cannot read, such as `.prettierrc.yml`. - `oxlint-tsgolint@7.0.2003` to `oxlint-tsgolint@7.0.2004`. Line disable comments apply to type-aware diagnostics again ([tsgolint#1271](oxc-project/tsgolint#1271)), so disable comments moved to the `} as T` line for v1.1.0 need to move back above the statement. - Projects that use `@effect/tsgo` need `@effect/tsgo@0.52.0` or later with this tsgolint version. ### Fixes & Enhancements - Reinstalling dependencies with pnpm, or installing them at another path, no longer causes task cache misses, and tasks that run `pnpm run` or `pnpm exec` no longer miss the cache after pnpm rechecks dependencies ([vite-task#823](voidzero-dev/vite-task#823), [vite-task#824](voidzero-dev/vite-task#824), [vite-task#825](voidzero-dev/vite-task#825)), by @wan9chi. - On macOS, tasks with automatic file-access tracking can run Node.js single executable applications, such as pnpm 11's standalone binary, and `deno compile` outputs ([vite-task#840](voidzero-dev/vite-task#840)), by @wan9chi. - Cached tasks can run scripts whose shebang names an interpreter path longer than 126 bytes ([vite-task#788](voidzero-dev/vite-task#788)), by @lifeiscontent. - When a cache hit's outputs cannot be restored, `vp run` fails with an error suggesting `vp cache clean` instead of reporting a successful cache hit ([vite-task#770](voidzero-dev/vite-task#770)), by @wan9chi. - `vp run` no longer stops every task when concurrent tasks write to a full output pipe, such as a CI log collector ([vite-task#801](voidzero-dev/vite-task#801)), by @naokihaba. - On Linux, tasks with automatic file-access tracking start faster ([vite-task#817](voidzero-dev/vite-task#817)), by @wan9chi. - In PowerShell, a failing `vp` command sets `$?` to `False` and stops `&&` chains, as calling `vp.exe` directly does ([#2947](#2947)), by @fengmk2. - The Windows installer works when the PowerShell profile enables `Set-StrictMode`, and leaves the caller's strict mode unchanged ([#3005](#3005)), by @fengmk2. - Sourcing the Vite+ env script in POSIX shells is much faster with a long `PATH`, for example from 1.5 s to 6 ms in dash with 147 entries ([#2905](#2905)), by @jonykru. - Node.js version ranges from `.node-version`, `engines.node`, and `devEngines.runtime`, and package-manager version ranges, follow npm's semver rules ([#2835](#2835)), by @ryuapp. - `vp migrate` adds the `tsdown <0.23` compatibility settings (`deps.resolveDepSubpath` and `attw.profile`) only for projects on an older tsdown, so upgrades from Vite+ 1.x or `tsdown@0.23.0` and later keep the modern defaults ([#2910](#2910)), by @fengmk2. - `vp create vite:generator` keeps the description prompt visible instead of drawing the spinner over it, uses concrete version ranges for dependencies missing from the workspace catalog, adds `rootDir: "src"` to the generated `tsconfig.json`, and scaffolds generators on `bingo@0.13.2` with Zod 4 option schemas ([#2940](#2940), [#2996](#2996), [#1831](#1831)), by @jong-kyung, @fengmk2, and @renovate[bot]. - `vp create` stops processing an organization template archive that expands past fixed size, compression ratio, or entry count limits ([#2950](#2950)), by @fengmk2. - `vp config` skips Git config writes that change nothing, so concurrent runs across linked worktrees no longer fail with `could not lock config file` after the first setup ([#2958](#2958)), by @naokihaba. - Git hooks no longer append the legacy `$VP_HOME/bin` or `~/.vite-plus/bin` directory to `PATH`. They use the inherited environment with the project's `node_modules/.bin` first, so projects without a local `vite-plus` dependency need the Vite+ bin directory on the Git client's `PATH` ([#2930](#2930)), by @liangmiQwQ. - Concurrent commands that need the same uninstalled Node.js version download it once; the others wait and reuse the installation ([#3024](#3024)), by @fengmk2. - `@voidzero-dev/vite-plus-core` declares the same `postcss`, optional `fsevents`, and Yuku parser ranges as the bundled Vite and tsdown, and `@oxlint/plugins` matches the bundled `oxlint` ([#2921](#2921)), by @fengmk2. - `vp pack --help` lists both default env prefixes, `VITE_PACK_` and `TSDOWN_` ([#3002](#3002)), by @jong-kyung. - Prompts and status lines use one space after status symbols ([#2928](#2928)), by @cpojer. ### Docs - Document shell completion, the global `-C` flag, the split directory layout, automatic update checks and how to opt out, package manager subcommands, and `vp env doctor` diagnostic scopes ([#2972](#2972), [#2956](#2956), [#2973](#2973), [#2960](#2960), [#2975](#2975), [#2982](#2982)), by @jong-kyung. - Clarify how `vp exec` and `vpx` resolve commands, how `vp test` selects its runner, how `vp config` treats existing Git hooks, what `vp check` needs for type checking, and how global CLI environment variables behave ([#2957](#2957), [#2979](#2979), [#2962](#2962), [#2978](#2978), [#2916](#2916), [#2919](#2919)), by @jong-kyung. - Correct migration prerequisites, minimum versions, and upgrade order, clarify tsup migration and staged configuration, fix local CLI installation without a global `vp`, and state the version requirements of `vp env uninstall` ([#2990](#2990), [#2923](#2923), [#2944](#2944), [#3004](#3004), [#2946](#2946)), by @jong-kyung. - Rename the install guide to Package Management, clarify package-management command compatibility, and align the create, run, and staged guides with CLI behavior and Vite Task defaults ([#2929](#2929), [#2925](#2925), [#2939](#2939), [#2941](#2941), [#2908](#2908)), by @jong-kyung. - Explain task cache behavior and how Vite build outputs are cached ([#2963](#2963), [#2942](#2942)), by @yusuke99 and @jong-kyung. - Correct the `baseUrl` and editor setup guidance in troubleshooting, and clarify JetBrains IDE support ([#2943](#2943), [#3001](#3001)), by @jong-kyung. - Note that `lazyPlugins` does not defer local module imports ([#2967](#2967)), by @kshanxs. - Align inline comments in code examples ([#2927](#2927)), by @yusuke99. ### Chore - Bump vite-task to `9ba4cc9`; its user-facing changes are listed above ([#3019](#3019)), by @wan9chi. - Speed up CI by removing platform waits, reusing native test binaries and dependency caches, skipping slow pnpm cache restores on macOS and Windows, and installing prebuilt `cargo-zigbuild` ([#2961](#2961), [#3023](#3023), [#3015](#3015), [#3010](#3010)), by @fengmk2. - Run CI bootstrap scripts without unpinned `tsx`, isolate upstream CLI help capture from workspace overrides, and update security-action to v1.0.10 ([#2948](#2948), [#2976](#2976), [#3022](#3022)), by @fengmk2. - Cache the docs build with the Vite Task remote cache ([#2926](#2926), [#2951](#2951)), by @wan9chi. - Add a Nix flake for the contributor development environment ([#2874](#2874), [#2974](#2974)), by @myuron and @fengmk2. - Stabilize the CLI help wrapping and browser snapshot tests ([#2952](#2952), [#3006](#3006)), by @myuron and @fengmk2. - Exclude upstream-managed dependencies from Renovate ([#2918](#2918)), by @fengmk2. - Refine the release-manager guidance ([#2917](#2917)), by @fengmk2. ### Bundled Versions | Tool | Version | Source | Changelog | | --------------- | ---------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | vite | `8.3.4` | [`b6c20f6`](vitejs/vite@b6c20f6) | [8.3.4](https://github.com/vitejs/vite/releases/tag/v8.3.4) | | rolldown | `1.2.13` | [`f7de35f`](rolldown/rolldown@f7de35f) | [1.2.13](https://github.com/rolldown/rolldown/releases/tag/v1.2.13) | | tsdown | `0.23.1` | [npm](https://npmx.dev/package/tsdown/v/0.23.1) | [0.23.1](https://github.com/rolldown/tsdown/releases/tag/v0.23.1) | | vitest | `5.0.4` | [npm](https://npmx.dev/package/vitest/v/5.0.4) | [5.0.4](https://github.com/vitest-dev/vitest/releases/tag/v5.0.4) | | oxlint | `1.88.0` | [npm](https://npmx.dev/package/oxlint/v/1.88.0) | [1.88.0](https://github.com/oxc-project/oxc/releases/tag/oxlint_v1.88.0) | | oxlint-tsgolint | `7.0.2004` | [npm](https://npmx.dev/package/oxlint-tsgolint/v/7.0.2004) | [7.0.2004](https://github.com/oxc-project/tsgolint/releases/tag/v7.0.2004) | | oxfmt | `0.73.0` | [npm](https://npmx.dev/package/oxfmt/v/0.73.0) | [0.73.0](https://github.com/oxc-project/oxc/releases/tag/oxfmt_v0.73.0) | ### Upgrade ```bash vp upgrade ``` ### New Contributors @ryuapp @jonykru @myuron @kshanxs @mfechner **Full Changelog**: v1.1.0...v1.2.0 --- Merging this PR will trigger the release workflow. --------- Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com> Co-authored-by: MK (fengmk2) <fengmk2@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2
added a commit
to vite-plus-ecosystem-ci/.github
that referenced
this pull request
Oct 14, 2026
…v1.2.0 sweep (#9) Records what the v1.2.0 smoke test (two preview builds, full catalog) taught us. **TESTING.md** - New "Re-sweeping on a new preview build" section: start from each fork's current test branch, retry post-migration commits after the new upgrade commit, keep the new lockfile when only lockfiles conflict, drop formatting commits that add migrate-generated keys before migrate, and report results per build. - Run the project's own format command (script, config, scope), not a bare `vp fmt`, which ignores `-c` configs and formats unchecked files. - Release-age gates: create a missing pnpm `minimumReleaseAgeExclude` list (pnpm 11 projects often have only `minimumReleaseAge`), and the Yarn `npmPreapprovedPackages` row. - oxlint-tsgolint 7.0.2004 (oxc-project/tsgolint#1271) reverts the moved-disable-comment trap; rebuild position-pinning oxlint baselines. - CI caveats: scripts that run the `vite` binary break after migrate, and GitHub can disable Actions on a fork while the permissions API still says enabled. - Find previous-cycle PRs per repository (`gh search` stops at 100 results); a "Network stalls" local pitfall. **ecosystem.json** - Remove `videojs-v10` and list it under Excluded repos: upstream moved to `videojs/video.js` and emptied `videojs/v10`. - Update the notes of 17 forks with the per-repo cases this sweep surfaced (Actions disabled on BlockNote, dify, playground, react-doctor, vinext; real `vite` pins in cloudflare-os and vinext; `@effect/tsgo` in sigle; Socket Firewall in npmx.dev; and others). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
maschwenk
added a commit
to maschwenk/tsrslint
that referenced
this pull request
Oct 15, 2026
Stock 7.0.2002 exits with `unknown rule: no-generated-empty-object-type` since the bench payload got its 60th rule, so every stock row has failed since Oct 8. 7.0.2003 is the first release with that rule. 7.0.2004 also has it but moves the reported range of four rules (oxc-project/tsgolint#1271), which tsrslint has not ported, so thousands of diagnostics per project would differ by range. The table caption, bench/README.md and the rule table's note now name the pinned stock version and the upstream fixes behind the few expected disagreements and text differences.
maschwenk
added a commit
to maschwenk/tsrslint
that referenced
this pull request
Oct 15, 2026
Stock 7.0.2002 exits with `unknown rule: no-generated-empty-object-type` since the bench payload got its 60th rule, so every stock row has failed since Oct 8. 7.0.2003 is the first release with that rule. 7.0.2004 also has it but moves the reported range of four rules (oxc-project/tsgolint#1271), which tsrslint has not ported, so thousands of diagnostics per project would differ by range. The table caption, bench/README.md and the rule table's note now name the pinned stock version and the upstream fixes behind the few expected disagreements and text differences.
robobun
added a commit
to oven-sh/bun
that referenced
this pull request
Nov 20, 2026
…olint #1271) With an oxlint config, no-unnecessary-condition, no-unsafe-assignment, no-unsafe-return and no-unsafe-type-assertion printed a report at one range and applied disable comments at another range. That copied tsgolint 7.0.2002 and 7.0.2003. A `disable-next-line` comment before an assertion on several lines did not apply when `as T` was on a later line. tsgolint 7.0.2004 (oxc-project/tsgolint#1271) reports one range, the whole node, and moves the types from labels into the help text. The four rules now do the same. no-unsafe-assignment also uses tsgolint's node for a destructuring target: the name of a shorthand property, a target with its parentheses, a pattern without its annotation. An ESLint config keeps typescript-eslint's ranges and prints no help. The oracle recordings are now those of oxlint 1.87.0 with tsgolint 7.0.2004. Two projects and one message keep their tsgolint 7.0.2003 recording and are marked with `tsgolint: "7.0.2003"`, because `bun lint` does not report yet what 7.0.2004 reports for them.
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.
Restore the original report ranges for
no-unnecessary-condition,no-unsafe-assignment,no-unsafe-return, andno-unsafe-type-assertion. The labeled-range changes moved the main span to an operator or keyword while Oxlint displayed another range, breaking existing line disable comments on multiline expressions.Use one range per finding and move the type context into help text with guidance for fixing the code. Add the four issue repros and preserve optional-chain removal suggestions.
Verified with Oxlint 1.87.0: both ESLint and Oxlint disable comments suppress all four findings without unused-directive warnings; removing the comments still reports all four.
Fixes oxc-project/oxc#27534