Repository navigation
fix(lint): leave suggestions out of the type check - #959
Conversation
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Performance change vs mainWorkflow run · main Clef gate: Clef estimated 24.8% default and single-threaded wall time, 20.4% peak RSS, 34.5% single-threaded instruction count impact probability. Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time. Measured medians (main → PR)
tsrs-lintRelease
Negative means the PR used less. Wall and CPU time deltas are medians of paired PR/main ratios; peak RSS compares medians. Measured lint medians (main → PR)
|
Backports oxc-project/tsrs#959 as a tsrs patch until it lands upstream. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@effect/tsgo](https://redirect.github.com/Effect-TS/tsgo) ([source](https://redirect.github.com/Effect-TS/tsgo/tree/HEAD/_packages/tsgo)) | [`0.68.0` → `0.68.1`](https://renovatebot.com/diffs/npm/@effect%2ftsgo/0.68.0/0.68.1) |  |  | --- ### Release Notes <details> <summary>Effect-TS/tsgo (@​effect/tsgo)</summary> ### [`v0.68.1`](https://redirect.github.com/Effect-TS/tsgo/blob/HEAD/_packages/tsgo/CHANGELOG.md#0681) [Compare Source](https://redirect.github.com/Effect-TS/tsgo/compare/@effect/tsgo@0.68.0...@effect/tsgo@0.68.1) ##### Patch Changes - [`e2593ac`](https://redirect.github.com/Effect-TS/tsgo/commit/e2593ac): Fix the `catchToOrElseSucceed` and `flatMapToMap` quick fixes emitting code that does not parse when `Effect.succeed` receives an object literal inside a concise arrow body. The value is now parenthesized, including when the object literal is followed by `as const` or `satisfies T`: ```ts // before Effect.catch(() => Effect.succeed({ ok: false } as const)) Effect.flatMap((n) => Effect.succeed({ value: n })) // after the fix (previously `() => { ok: false } as const` and `(n) => { value: n }`) Effect.orElseSucceed(() => ({ ok: false } as const)) Effect.map((n) => ({ value: n })) ``` - [`732dd03`](https://redirect.github.com/Effect-TS/tsgo/commit/732dd03): Stop `--tsrs-lint ... --type-check` from reporting Effect suggestions as errors ([#​1025](https://redirect.github.com/Effect-TS/tsgo/issues/1025)). Oxlint showed every type-check diagnostic as an error, so suggestion-level Effect diagnostics such as `schemaClassMissingBrand` made the lint fail even though `effect-tsgo tsrs --noEmit` passed. tsrs-lint now forwards only errors and warnings to `--type-check`. This backports [oxc-project/tsrs#959](https://redirect.github.com/oxc-project/tsrs/issues/959) as a tsrs patch until it lands upstream. ```sh # before: suggestions reported as errors, exit 1 # after: exits 0, like `effect-tsgo tsrs --noEmit` effect-tsgo --tsrs-lint vp lint --type-aware --type-check ``` </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/yokozi-jp/agent-software-factory). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Oxlint reports every --type-check diagnostic as an error, so suggestions that a compiler plugin adds (Effect's language service) failed lint although the plugin's tsc passes them. Message-category diagnostics stay in: the checker reports TS1450 as one, and tsc fails on it.
8af942d to
55c985f
Compare
|
Warnings still fail the lint after this change, since oxlint shows every forwarded Carrying the category in the payload, so oxlint can report a warning as a warning, would close that gap. |
- 160-bolt-extra-workload: re-made on the new bolt.sh (upstream added a `--fast` training run, which moved the first hunk's context); same change. - 180-lint-type-check-severity: dropped from _patches/tsrs, since tsrs3 carries oxc-project/tsrs#959. Kept in the tsrs2 override folder (vite-plus 1.7.0 pins tsrs2, which lacks it). - repoctl check: a tsrs override folder must hold every _patches/tsrs patch and may keep extra ones (backports the latest tsrs already carries). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: update upstream metadata * fix(upstream): rebase tsrs patches on 7.1.0-beta.tsrs3 - 160-bolt-extra-workload: re-made on the new bolt.sh (upstream added a `--fast` training run, which moved the first hunk's context); same change. - 180-lint-type-check-severity: dropped from _patches/tsrs, since tsrs3 carries oxc-project/tsrs#959. Kept in the tsrs2 override folder (vite-plus 1.7.0 pins tsrs2, which lacks it). - repoctl check: a tsrs override folder must hold every _patches/tsrs patch and may keep extra ones (backports the latest tsrs already carries). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(flake): pin TypeScript next e086ad3b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: regenerate schema, shims and TypeScript next pointer The tsconfig base schema update was not propagated to schema.json (failing TestGenerateTSConfigSchemaMatchesReference in Go and Rust), and the typescript submodule and its generated shims still pointed at the previous next commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mattia Manzati <mattia.manzati@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@effect/tsgo](https://redirect.github.com/Effect-TS/tsgo) ([source](https://redirect.github.com/Effect-TS/tsgo/tree/HEAD/_packages/tsgo)) | [`0.67.7` → `0.68.1`](https://renovatebot.com/diffs/npm/@effect%2ftsgo/0.67.7/0.68.1) |  |  | --- ### Release Notes <details> <summary>Effect-TS/tsgo (@​effect/tsgo)</summary> ### [`v0.68.1`](https://redirect.github.com/Effect-TS/tsgo/blob/HEAD/_packages/tsgo/CHANGELOG.md#0681) [Compare Source](https://redirect.github.com/Effect-TS/tsgo/compare/@effect/tsgo@0.68.0...@effect/tsgo@0.68.1) ##### Patch Changes - [`e2593ac`](https://redirect.github.com/Effect-TS/tsgo/commit/e2593ac): Fix the `catchToOrElseSucceed` and `flatMapToMap` quick fixes emitting code that does not parse when `Effect.succeed` receives an object literal inside a concise arrow body. The value is now parenthesized, including when the object literal is followed by `as const` or `satisfies T`: ```ts // before Effect.catch(() => Effect.succeed({ ok: false } as const)) Effect.flatMap((n) => Effect.succeed({ value: n })) // after the fix (previously `() => { ok: false } as const` and `(n) => { value: n }`) Effect.orElseSucceed(() => ({ ok: false } as const)) Effect.map((n) => ({ value: n })) ``` - [`732dd03`](https://redirect.github.com/Effect-TS/tsgo/commit/732dd03): Stop `--tsrs-lint ... --type-check` from reporting Effect suggestions as errors ([#​1025](https://redirect.github.com/Effect-TS/tsgo/issues/1025)). Oxlint showed every type-check diagnostic as an error, so suggestion-level Effect diagnostics such as `schemaClassMissingBrand` made the lint fail even though `effect-tsgo tsrs --noEmit` passed. tsrs-lint now forwards only errors and warnings to `--type-check`. This backports [oxc-project/tsrs#959](https://redirect.github.com/oxc-project/tsrs/issues/959) as a tsrs patch until it lands upstream. ```sh # before: suggestions reported as errors, exit 1 # after: exits 0, like `effect-tsgo tsrs --noEmit` effect-tsgo --tsrs-lint vp lint --type-aware --type-check ``` ### [`v0.68.0`](https://redirect.github.com/Effect-TS/tsgo/blob/HEAD/_packages/tsgo/CHANGELOG.md#0680) [Compare Source](https://redirect.github.com/Effect-TS/tsgo/compare/@effect/tsgo@0.67.7...@effect/tsgo@0.68.0) ##### Minor Changes - [`a764f17`](https://redirect.github.com/Effect-TS/tsgo/commit/a764f17): Add `onExitFailureToOnError` style suggestion: it reports an `Effect.onExit` callback that only acts on failure (`Exit.isFailure`, `Exit.isSuccess`, `exit._tag` checks, in a conditional, `if` or `switch`, with `Effect.void` on the other side) and recommends `Effect.onError`, which expresses the same intent more directly. ```ts program.pipe( Effect.onExit((exit) => Exit.isFailure(exit) ? Effect.logError("failed", { cause: exit.cause }) : Effect.void ) ) // can be written as program.pipe(Effect.onError((cause) => Effect.logError("failed", { cause }))) ``` ##### Patch Changes - [`ec499f2`](https://redirect.github.com/Effect-TS/tsgo/commit/ec499f2): Move fix-only work out of rule analysis into the quick fixes, so it runs only when the editor asks for code actions instead of on every check. This covers 27 rules, among them `yieldInCallArgument`, `failCauseToConstructor`, `suspendFailToFailSync`, `catchTagToCatchReason`, `mapMapErrorToMapBoth` and `unnecessaryEffectGen`. Their diagnostics are unchanged. Three rules now report explicitly typed calls that they used to skip, because those calls can still be rewritten by hand. They get no quick fix: - `provideLayerSucceedToProvideService`: `Effect.provide(Layer.succeed<I, S>(Service, implementation))` (rewrite: `Effect.provideService<I, S>(Service, implementation)`), and the same for `Layer.effect<…>` - `provideMergeAllToArray`: `Effect.provide<…>(Layer.mergeAll(...))` and `Effect.provide(Layer.mergeAll<…>(...))` - `timeoutCatchTagToTimeoutOrElse`: explicit type arguments on the `Effect.timeout` step ```ts // now reported, without a quick fix program.pipe(Effect.provide(Layer.succeed<Service, { readonly value: number }>(Service, implementation))) ``` - [`7aacb7d`](https://redirect.github.com/Effect-TS/tsgo/commit/7aacb7d): Update the TypeScript next tag to [`typescript@next`](https://www.npmjs.com/package/typescript/v/7.1.0-dev.20261110.1), which ships [`typescript-go`](https://redirect.github.com/microsoft/typescript-go/commit/b7917e5e4c278f132ed19f777d968b6b1180fc24) commit `b7917e5e4c278f132ed19f777d968b6b1180fc24`, update the TypeScript beta tag to [`typescript@beta`](https://www.npmjs.com/package/typescript/v/7.1.0-beta), and update the TypeScript latest tag to [`typescript@latest`](https://www.npmjs.com/package/typescript/v/7.0.2). </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/CodeForBreakfast/commy). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNDkuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjI0OS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9uZWVkcy1yZXZpZXciXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
oxlint reports every
--type-checkdiagnostic as an error, so suggestions from a compiler plugin failed lint even when the plugin's owntscpasses them (Effect-TS/tsgo#1025). tsrs-lint now leaves suggestions out and forwards every other category, including messages like TS1450, whichtscfails on. effect-tsgo built on this branch,oxlint --type-aware --type-checkon pingdotgg/t3code main: 1,389 errors before, 1 after (an unrelated TS2769)added a headless test that TS1450 is still reported. the suggestion side has no stock test, since stock tsrs never puts a suggestion in a file's diagnostics