diff --git a/crates/tsrs_lint/tests/baselines/PROGRESS.md b/crates/tsrs_lint/tests/baselines/PROGRESS.md index be909b603..1656a1671 100644 --- a/crates/tsrs_lint/tests/baselines/PROGRESS.md +++ b/crates/tsrs_lint/tests/baselines/PROGRESS.md @@ -7,74 +7,74 @@ Rule-level `REFERENCE` files record scoped refreshes from this initial corpus. Every rule must pass its active upstream cases, options, diagnostic snapshots, fixes, and suggestions before its implementation commit. Upstream skips remain explicit. -| Rule | Status | Evidence | -| --- | --- | --- | -| await-thenable | Updated to e1015111 | 191 current cases; destructuring-assignment computed keys, allowMixedPromiseArrays, UTF-8 ranges, suggestion flags, per-file configuration regressions | -| consistent-return | Updated to Go HEAD | 31 current cases; nested function state, multiple rules, undefined option regressions | -| consistent-type-exports | Updated to Go HEAD | 49 current cases; source overrides and both mixed-export fix modes | -| dot-notation | Updated to Go HEAD | 75 current cases; Go regex quoting, groups, classes, repetitions, Unicode properties, and octal escapes | -| no-array-delete | Updated to Go HEAD | 31 current cases; suggestion flags and UTF-8 ranges | -| no-base-to-string | Updated to 7f5c22e5 | 384 current cases, 1 upstream skips; `Symbol.toPrimitive` methods, conversions/joins, recursive types, ignored names, checkUnknown | -| no-confusing-void-expression | Updated to Go HEAD | 109 current cases, 1 upstream skips; arrow/return fixes, contextual void, option combinations | -| no-deprecated | Updated to Go HEAD | 242 current cases, 12 upstream skips; aliases, circular alias chains, signatures, contextual properties, destructuring, allow specifiers | -| no-duplicate-type-constituents | Updated to 840816e9 | 89 current cases, 2 upstream skips; nested unions/intersections, optional parameter fixes, multiline JSDoc ranges and fixes after template literal types | -| no-floating-promises | Updated to 1696fe03 | 190 current cases, 1 upstream skips; parenthesized operands, promises/thenables, rejection handlers, allowlists, await/void suggestions | -| no-for-in-array | Updated to Go HEAD | 24 current cases; structural array-likes and loop-header byte ranges | -| no-implied-eval | Updated to Go HEAD | 70 current cases; Function constructors, timer handlers, local shadowing | -| no-meaningless-void-operator | Updated to bcdea900 | 41 current cases; non-call operands, syntax-preserving removals, checkNever and independent fix/suggestion flags | -| no-misused-promises | Updated to 1ae4bbd5 | 263 current cases, 1 upstream skip; conditionals with `flagUnions` none/strict/all from upstream #1353, predicates, spreads, nested void-return options, generic overloads and constraints, Promise-accepting overloads, constructors and impossible intersections | -| no-misused-spread | Updated to Go HEAD | 133 current cases, 1 upstream skips; string/array/iterable/class checks, allowlists, await and map suggestions | -| no-mixed-enums | Updated to ddba56df | 54 current cases; initializer types, merged declarations, empty or non-enum earlier declarations, enums without symbols and namespace/module augmentation | -| no-redundant-type-constituents | Updated to Go HEAD | 104 current cases; union/intersection overrides, aliases, literals and function return exceptions | -| no-unnecessary-boolean-literal-compare | Updated to ada797a9 | 51 current cases; boolean-only nullable unions, nullable options, unary/precedence fixes and strictNullChecks diagnostics | -| no-unnecessary-condition | Updated to Go HEAD | 384 current cases; truthiness, nullish checks, optional chains, comparisons, loops and predicates | -| no-unnecessary-qualifier | Updated to Go HEAD | 18 current cases; namespace/enum scope, alias resolution, shadowing and qualifier fixes | -| no-unnecessary-template-expression | Updated to fc051153 | 185 current cases; string constraints, type templates, comments, canonical literals and raw escaping fixes | -| no-unnecessary-type-conversion | Updated to Go HEAD | 77 current cases; primitive calls, unary/concatenation conversions, enum exclusions and satisfies suggestions | -| no-unnecessary-type-arguments | Updated to Go HEAD | 110 current cases, 1 upstream skips; default type identity, constructor inference, calls, heritage and JSX fixes | -| no-unnecessary-type-parameters | Updated to Go HEAD | 187 current cases; signature/class usage counts, generic type argument reuse, recursive types, predicates and constraint replacement suggestions; upstream terminal-reference fix plus five regression/control sources in all four fix modes | -| no-unnecessary-type-assertion | Updated to 24dd5a19 | 396 current cases; inferred generic type argument diagnostics without autofixes, contextual/generic typing, non-null flow guards, const options, comment-preserving assertion fixes and `exactOptionalPropertyTypes` union comparisons ([scoped reference](no-unnecessary-type-assertion/REFERENCE)) | -| no-useless-default-assignment | Updated to Go HEAD | 93 current cases; object/tuple binding sources, contextual parameters, undefined defaults and optional-syntax fixes | -| no-unsafe-argument | Updated to Go HEAD | 43 current cases; recursive generic assignments, array/tuple spreads, rest consumption and tagged-template parameters | -| no-unsafe-assignment | Updated through `6b043c5f3dd1` | 112 active cases, 1 upstream skip; generic comparisons, nested destructuring, array spreads, quoted contextual properties, JSX any/unknown props, intrinsic elements, index signatures, union props and implicit this | -| no-unsafe-call | Updated to Go HEAD | 36 current cases; constrained any/error types, Function call/construct signatures, implicit this and template tags | -| no-unsafe-class-instance-assignment | Added from tsgolint #1372 | | -| no-unsafe-enum-assignment | Updated to Go HEAD | 284 current cases; assignments, arguments, spreads, returns, assertions, mutations, contextual literals, heritage members, mapped-type keys and bitwise flag combinations | -| no-unsafe-enum-comparison | Updated to Go HEAD | 93 current cases; enum/primitive comparisons, switch labels, static values and scoped member replacement suggestions | -| no-unsafe-member-access | Updated to Go HEAD | 36 current cases; optional-chain options, inner-chain deduplication, heritage exclusions, computed keys and implicit this | -| no-unsafe-return | Updated to Go HEAD | 76 current cases; deferred return types, unsafe generic assignments, virtual dependency declarations and JSDoc callbacks | -| no-unsafe-type-assertion | Updated to Go HEAD | 101 current cases; bidirectional any assignments, object widening, narrowing, unconstrained types and generic constraint diagnostics | -| no-unsafe-unary-minus | Updated to Go HEAD | 23 current cases; UTF-8 ranges, union member ordering, generic constraints, ignored options and independent fix/suggestion flags | -| non-nullable-type-assertion-style | Updated to 020d62f7 | 27 current cases; UTF-8 suggestion ranges, independent flags, ignored options, assertion precedence, generic constraints and JavaScript JSDoc casts | -| only-throw-error | Updated to Go HEAD | 112 current cases; UTF-8 ranges, per-file options, null defaults, invalid options, rethrow boundaries and independent flags | -| prefer-find | Updated to Go HEAD | 47 current cases; constant/coercion evaluation, constrained array unions/intersections, conditional/comma suggestions, UTF-8 comment ranges and independent suggestion flags | -| prefer-includes | Updated to b3c5445e | 83 current cases; effectively-const pattern variables, parameter-text compatibility, regexp patterns, UTF-8 ranges, ignored options and independent fix flags | -| prefer-optional-chain | Updated to c52fd036 | 1183 current cases; structural chains, nullish guards, global `typeof` guards, comment-preserving fixes, UTF-8 ranges, per-file options/state and independent fix/suggestion flags; 3 direct JSX-context controls and 5 callback cases from upstream #1335 | -| prefer-nullish-coalescing | Updated to Go HEAD | 184 current cases, 2 upstream skips; UTF-8 suggestion ranges, independent flags, per-file options, Boolean shadowing, raw generic types and strictness diagnostics | -| prefer-promise-reject-errors | Updated to Go HEAD | 161 current cases, 1 upstream skips; UTF-8 call ranges, per-file options, null defaults, invalid options, computed accesses, executor boundaries, readonly constraints and independent flags | -| prefer-readonly-parameter-types | Updated to Go HEAD | 135 current cases; recursive readonly arrays/tuples/properties/indexes, branded literals, UTF-8 parameter ranges, per-file/null/invalid options and independent flags | -| prefer-regexp-exec | Updated to b3c5445e | 38 current cases; effectively-const argument variables, regexp2 syntax, Unicode 17 predicates, conditional branch/reference regressions, const aliases/global flags, constrained strings, computed access, UTF-8 ranges, ignored options and independent fix flags | -| prefer-readonly | Updated to Go HEAD | 162 current cases; UTF-8 ranges, constructor/nested-class scope, type relations, enum shadowing, per-file options/state and independent fix/suggestion flags | -| prefer-reduce-type-parameter | Updated to Go HEAD | 31 current cases; UTF-8 comment ranges, raw type trivia, computed members, readonly arrays, chained constraints, ignored options and independent fix/suggestion flags | -| prefer-return-this-type | Updated to Go HEAD | 22 current cases; UTF-8 ranges, exact class/this type identity, nested return boundaries, ignored options, per-file isolation and independent fix/suggestion flags | -| prefer-string-starts-ends-with | Updated to b3c5445e | 137 current cases; effectively-const static values, UTF-8 fix ranges, string constraints, regex flags/escapes, null defaults, per-file options, invalid options and independent fix/suggestion flags | -| promise-function-async | Updated to Go HEAD | 53 current cases; UTF-8 ranges, inherited and generic return types, overloads, per-file/null/invalid options and independent fix/suggestion flags | -| related-getter-setter-pairs | Updated to Go HEAD | 23 current cases; 26 oracle regressions for UTF-8 ranges, textual/computed/private names, duplicate source order, generic assignability, nested scopes, ignored options and independent fix/suggestion flags | -| require-array-sort-compare | Updated to Go HEAD | 55 current cases; tuples, UTF-8 call ranges, computed/optional accesses, readonly tuples, generic constraints, array unions/intersections, per-file/null/invalid options and independent fix/suggestion flags | -| require-await | Updated to Go HEAD | 90 current cases; UTF-8 heads/edits, nested and per-file scopes, constrained/union thenables and async iterables, decorators, ASI/comments, ignored options and independent suggestion flags | -| restrict-plus-operands | Updated to Go HEAD | 122 current cases; UTF-8 operand/label ranges, constrained types, RegExp identity, union/intersection checks, per-file/null/invalid options and independent flags | -| restrict-template-expressions | Updated to c21e8f5e | 74 current cases; UTF-8 labeled ranges, null defaults, invalid options, per-file allowlists, nested and recursive arrays/tuples, constraints, tagged templates and independent flags | -| return-await | Updated to Go HEAD | 107 current cases; 29 oracle regressions for UTF-8 ranges, per-file/null/invalid options, nested scopes, resource disposal, generic constraints, precedence and independent fix/suggestion flags | -| strict-boolean-expressions | Updated to Go HEAD | 218 current cases; 24 oracle regressions for UTF-8 ranges, logical traversal state, assertion/array predicates, generic constraints, nullable options, strictNullChecks, invalid options and independent fix/suggestion flags | -| strict-void-return | Updated to Go HEAD | 214 current cases, 1 upstream skips; UTF-8 ranges, contextual/generic/overload returns, inherited members, nested scopes, per-file/null/invalid options and independent fix/suggestion flags | -| switch-exhaustiveness-check | Updated to Go HEAD | 107 current cases; 45 oracle regressions for UTF-8 ranges/indentation, constrained and branded types, undefined identity, enum escaping, default options, per-file isolation and independent suggestion flags | -| unbound-method | Updated to Go HEAD | 223 current cases, 2 upstream skips; 35 oracle regressions for UTF-8 labels, this annotations, safe uses, nested/aliased destructuring, native globals/shadowing, builtin type recursion, per-file/null/invalid options and independent flags | -| use-unknown-in-catch-callback-variable | Updated to Go HEAD | 56 current cases, 1 upstream skips; UTF-8 suggestions, ignored options, expression branches, spread boundaries, constraints, per-file configuration and independent fix/suggestion flags | +| Rule | Status | +| --- | --- | +| await-thenable | Updated to e1015111 | +| consistent-return | Updated to Go HEAD | +| consistent-type-exports | Updated to Go HEAD | +| dot-notation | Updated to Go HEAD | +| no-array-delete | Updated to Go HEAD | +| no-base-to-string | Updated to 7f5c22e5 | +| no-confusing-void-expression | Updated to Go HEAD | +| no-deprecated | Updated to Go HEAD | +| no-duplicate-type-constituents | Updated to 840816e9 | +| no-floating-promises | Updated to 1696fe03 | +| no-for-in-array | Updated to Go HEAD | +| no-implied-eval | Updated to Go HEAD | +| no-meaningless-void-operator | Updated to bcdea900 | +| no-misused-promises | Updated to 1ae4bbd5 | +| no-misused-spread | Updated to Go HEAD | +| no-mixed-enums | Updated to ddba56df | +| no-redundant-type-constituents | Updated to Go HEAD | +| no-unnecessary-boolean-literal-compare | Updated to ada797a9 | +| no-unnecessary-condition | Updated to Go HEAD | +| no-unnecessary-qualifier | Updated to Go HEAD | +| no-unnecessary-template-expression | Updated to fc051153 | +| no-unnecessary-type-conversion | Updated to Go HEAD | +| no-unnecessary-type-arguments | Updated to Go HEAD | +| no-unnecessary-type-parameters | Updated to Go HEAD | +| no-unnecessary-type-assertion | Updated to 24dd5a19 | +| no-useless-default-assignment | Updated to Go HEAD | +| no-unsafe-argument | Updated to Go HEAD | +| no-unsafe-assignment | Updated through `6b043c5f3dd1` | +| no-unsafe-call | Updated to Go HEAD | +| no-unsafe-class-instance-assignment | Added from tsgolint #1372 | +| no-unsafe-enum-assignment | Updated to Go HEAD | +| no-unsafe-enum-comparison | Updated to Go HEAD | +| no-unsafe-member-access | Updated to Go HEAD | +| no-unsafe-return | Updated to Go HEAD | +| no-unsafe-type-assertion | Updated to Go HEAD | +| no-unsafe-unary-minus | Updated to Go HEAD | +| non-nullable-type-assertion-style | Updated to 020d62f7 | +| only-throw-error | Updated to Go HEAD | +| prefer-find | Updated to Go HEAD | +| prefer-includes | Updated to b3c5445e | +| prefer-optional-chain | Updated to c52fd036 | +| prefer-nullish-coalescing | Updated to Go HEAD | +| prefer-promise-reject-errors | Updated to Go HEAD | +| prefer-readonly-parameter-types | Updated to Go HEAD | +| prefer-regexp-exec | Updated to b3c5445e | +| prefer-readonly | Updated to Go HEAD | +| prefer-reduce-type-parameter | Updated to Go HEAD | +| prefer-return-this-type | Updated to Go HEAD | +| prefer-string-starts-ends-with | Updated to b3c5445e | +| promise-function-async | Updated to Go HEAD | +| related-getter-setter-pairs | Updated to Go HEAD | +| require-array-sort-compare | Updated to Go HEAD | +| require-await | Updated to Go HEAD | +| restrict-plus-operands | Updated to Go HEAD | +| restrict-template-expressions | Updated to c21e8f5e | +| return-await | Updated to Go HEAD | +| strict-boolean-expressions | Updated to Go HEAD | +| strict-void-return | Updated to Go HEAD | +| switch-exhaustiveness-check | Updated to Go HEAD | +| unbound-method | Updated to Go HEAD | +| use-unknown-in-catch-callback-variable | Updated to Go HEAD | ## Additional Oxlint compatibility rules These rules extend the original 59-rule inventory. Their source revisions are recorded separately. -| Rule | Status | Evidence | -| --- | --- | --- | -| no-generated-empty-object-type | Updated to Go HEAD | 29 current cases; generic mapped types, unions, intersections, call/construct signatures and primitive assignability | +| Rule | Status | +| --- | --- | +| no-generated-empty-object-type | Updated to Go HEAD | diff --git a/docs/COMPATIBILITY.md b/docs/COMPATIBILITY.md index 7fd3cd6f3..ee32814ba 100644 --- a/docs/COMPATIBILITY.md +++ b/docs/COMPATIBILITY.md @@ -43,6 +43,8 @@ Updating this table (../AGENTS.md says when; commands and paths below are relati - Keep the status column to a short state: `yes`, `no`, `ignored`, or the condition it needs (such as `--incremental`). Put numbers and caveats in the evidence column. - Keep the root and npm README summaries, docs/EMIT.md, docs/LSP.md and docs/STATUS.md consistent with the table. +- Keep the Type-aware linting row free of per-port detail: no tsgolint pull request references and no case counts. + Each rule's `REFERENCE` records its scoped refresh, so a rule port does not edit this table. --> "Identical" below means identical to tsgo at the same reference commit. The recorded beta counts use its @@ -53,7 +55,7 @@ have been available since 0.20.0. | feature | status | evidence and notes | | --- | --- | --- | -| Type-aware linting | 62 rules | Rust headless binary `tsrs-lint`, also `tsrs --lint` (the npm `tsrs-lint` command), implements 62/62 pinned tsgolint rules; 8239 imported active case inputs pass, 28 upstream skips; the base corpus follows rebuilt tsgolint v7.0.2005 ([reference](../crates/tsrs_lint/tests/baselines/REFERENCE)), with per-rule scoped refreshes; no-misused-promises accepts `checksConditionals: { flagUnions }` from upstream #1353 ([reference](../crates/tsrs_lint/tests/baselines/no-misused-promises/REFERENCE)); no-unsafe-class-instance-assignment is added from upstream #1372 with the recursive comparison guard from #1373 ([reference](../crates/tsrs_lint/tests/baselines/no-unsafe-class-instance-assignment/REFERENCE)); no-meaningless-void-operator reports `void` on non-call operands from upstream #1375 ([reference](../crates/tsrs_lint/tests/baselines/no-meaningless-void-operator/REFERENCE)); restrict-template-expressions handles recursive arrays and tuples with `allowArray` from upstream #1377 ([reference](../crates/tsrs_lint/tests/baselines/restrict-template-expressions/REFERENCE)); non-nullable-type-assertion-style ignores JSDoc casts in JavaScript files from upstream #1286 ([reference](../crates/tsrs_lint/tests/baselines/non-nullable-type-assertion-style/REFERENCE)); no-duplicate-type-constituents fixes a duplicate after a template literal type without panicking from upstream #1389 ([reference](../crates/tsrs_lint/tests/baselines/no-duplicate-type-constituents/REFERENCE)); prefer-includes, prefer-string-starts-ends-with and prefer-regexp-exec follow a variable initializer only when the variable is effectively const, from upstream #1391 ([reference](../crates/tsrs_lint/tests/baselines/prefer-includes/REFERENCE)); no-base-to-string treats a `[Symbol.toPrimitive]` method as custom stringification from upstream #1398 ([reference](../crates/tsrs_lint/tests/baselines/no-base-to-string/REFERENCE)); no-unnecessary-boolean-literal-compare treats a union as a nullable boolean only when its non-nullish members are all boolean, from upstream #1401 ([reference](../crates/tsrs_lint/tests/baselines/no-unnecessary-boolean-literal-compare/REFERENCE)); no-mixed-enums reads the desired member type from an earlier non-empty enum declaration without panicking from upstream #1400 ([reference](../crates/tsrs_lint/tests/baselines/no-mixed-enums/REFERENCE)); the lint traversal visits computed property names in destructuring assignments from upstream #1396 ([reference](../crates/tsrs_lint/tests/baselines/await-thenable/REFERENCE)); no-floating-promises skips parentheses around nested operands from upstream #1399 ([reference](../crates/tsrs_lint/tests/baselines/no-floating-promises/REFERENCE)); no-unnecessary-template-expression autofixes single interpolations only for exact `string` expressions and suggests narrowing removals from upstream #1367 ([reference](../crates/tsrs_lint/tests/baselines/no-unnecessary-template-expression/REFERENCE)); prefer-optional-chain includes 1183 cases, including JSX callback coverage from upstream #1335 and `typeof` guards on global references from upstream #1392 ([reference](../crates/tsrs_lint/tests/baselines/prefer-optional-chain/REFERENCE)); no-unnecessary-type-assertion reports assertions that infer generic call type arguments without an autofix, and under `exactOptionalPropertyTypes` compares only the non-`undefined` members of unions that include `undefined` from upstream #1390 ([reference](../crates/tsrs_lint/tests/baselines/no-unnecessary-type-assertion/REFERENCE)); untyped explicit `this` parameters are handled without the current Go HEAD panic ([regression](../crates/tsrs_lint/tests/integration/headless.rs)); a relative type reference that reaches a symlinked package through a type root does not panic in a program with project references ([regression](../crates/tsrs_compiler/tests/integration/typeroot_candidate_test.rs)); `types: ["*"]` lists type roots without panicking in a program with project references ([regression](../crates/tsrs_compiler/tests/integration/program_test.rs)); diagnostics whose text holds a lone surrogate are reported where Go silently drops them ([investigation](../notes/tsgolint-diagnostic-parity.md)); identified rule-version gaps are synchronized to Go HEAD ([refresh evidence](../notes/tsgolint-head-refresh.md)); compiler-version and corpus-order differences remain documented ([investigation](../notes/tsgolint-diagnostic-parity.md)) ([progress](../crates/tsrs_lint/tests/baselines/PROGRESS.md), [baseline tests](../crates/tsrs_lint/tests/integration/baselines.rs)); recursive type-reference traversal includes the newer Go fix ([evidence](../crates/tsrs_lint/tests/fixtures/type_parameter_references/REFERENCE)); V1/V2 payloads reject unpaired JSON surrogate escapes ([protocol tests](../crates/tsrs_lint/tests/integration/protocol.rs)); custom-named configs reached through transitive project references retain inherited compiler options, including in deeper and diamond graphs ([discovery tests](../crates/tsrs_lint/tests/integration/engine_test.rs)); program loading/binding uses the compiler's parallel pool (default up to 32 threads, `RAYON_NUM_THREADS` override) with per-program allocation regions and honors `singleThreaded`; programs in one headless request share parsed extended and referenced-project configs and parsed/bound declaration files in request-owned regions, and a tsconfig program reuses its discovery parse when its config path has the spelling discovery parsed ([#949](https://github.com/oxc-project/tsrs/pull/949), [#950](https://github.com/oxc-project/tsrs/pull/950), [#951](https://github.com/oxc-project/tsrs/pull/951), [issue #1016](https://github.com/oxc-project/tsrs/issues/1016)); linting and requested semantic diagnostics run on each program's checker pool with the fast preset enabled by default (`TSRS_FAST=0` disables it; a positive `RAYON_NUM_THREADS` or a tsconfig `checkers` option sets the count), free the checkers with the program and retain file-order output frames; requested syntactic and semantic diagnostics (oxlint `--type-check`) cover only the files the request lists, as tsgolint does: other program files are not reported, global diagnostics are reported once per program on its tsconfig, declaration diagnostics are reported when `declaration` or `composite` is set, and listed files outside every tsconfig are type-checked in an inferred program ([regressions](../crates/tsrs_lint/tests/integration/headless.rs)); type-check diagnostics include a `category` field (`error`, `warning`, or `message`) so oxlint can map plugin warnings to warnings instead of errors (#1031, [regression](../crates/tsrs_lint/tests/integration/headless.rs)); each type error's description has its message chain, one line for each message, as `tsc` prints it, where tsgolint sends only the first line ([regression](../crates/tsrs_lint/tests/integration/headless.rs)); with semantic reporting enabled, every listed file is type-checked before rules run, so errors retain their file locations ([#955](https://github.com/oxc-project/tsrs/pull/955)); semantic reporting and linting share the pool checker that owns each file, accepting history-dependent diagnostics and fixes ([evidence](../notes/perf-tsgolint-shared-checker.md)); switch default-case comments honor the default marker and custom ECMAScript patterns, including lookarounds, backreferences and scoped `i`/`m`/`s` modifiers ([oracle regressions](../crates/tsrs_lint/tests/fixtures/switch_exhaustiveness_check/REFERENCE)); invalid patterns return protocol errors; virtual source overrides participate in package resolution and include globs ([overlay test](../crates/tsrs_lint/tests/integration/headless.rs)) ([concurrency test](../crates/tsrs_lint/tests/integration/headless.rs), [lifecycle tests](../crates/tsrs_lint/tests/integration/lifecycle.rs), [binding ownership test](../crates/tsrs_compiler/tests/integration/programregions_test.rs)) | +| Type-aware linting | 62 rules | Rust headless binary `tsrs-lint`, also `tsrs --lint` (the npm `tsrs-lint` command), implements 62/62 pinned tsgolint rules; every imported active upstream case input passes and upstream skips stay explicit; the base corpus follows rebuilt tsgolint v7.0.2005 ([reference](../crates/tsrs_lint/tests/baselines/REFERENCE)), with per-rule scoped refreshes recorded in each rule's `REFERENCE`; untyped explicit `this` parameters are handled without the current Go HEAD panic ([regression](../crates/tsrs_lint/tests/integration/headless.rs)); a relative type reference that reaches a symlinked package through a type root does not panic in a program with project references ([regression](../crates/tsrs_compiler/tests/integration/typeroot_candidate_test.rs)); `types: ["*"]` lists type roots without panicking in a program with project references ([regression](../crates/tsrs_compiler/tests/integration/program_test.rs)); diagnostics whose text holds a lone surrogate are reported where Go silently drops them ([investigation](../notes/tsgolint-diagnostic-parity.md)); identified rule-version gaps are synchronized to Go HEAD ([refresh evidence](../notes/tsgolint-head-refresh.md)); compiler-version and corpus-order differences remain documented ([investigation](../notes/tsgolint-diagnostic-parity.md)) ([progress](../crates/tsrs_lint/tests/baselines/PROGRESS.md), [baseline tests](../crates/tsrs_lint/tests/integration/baselines.rs)); recursive type-reference traversal includes the newer Go fix ([evidence](../crates/tsrs_lint/tests/fixtures/type_parameter_references/REFERENCE)); V1/V2 payloads reject unpaired JSON surrogate escapes ([protocol tests](../crates/tsrs_lint/tests/integration/protocol.rs)); custom-named configs reached through transitive project references retain inherited compiler options, including in deeper and diamond graphs ([discovery tests](../crates/tsrs_lint/tests/integration/engine_test.rs)); program loading/binding uses the compiler's parallel pool (default up to 32 threads, `RAYON_NUM_THREADS` override) with per-program allocation regions and honors `singleThreaded`; programs in one headless request share parsed extended and referenced-project configs and parsed/bound declaration files in request-owned regions, and a tsconfig program reuses its discovery parse when its config path has the spelling discovery parsed ([#949](https://github.com/oxc-project/tsrs/pull/949), [#950](https://github.com/oxc-project/tsrs/pull/950), [#951](https://github.com/oxc-project/tsrs/pull/951), [issue #1016](https://github.com/oxc-project/tsrs/issues/1016)); linting and requested semantic diagnostics run on each program's checker pool with the fast preset enabled by default (`TSRS_FAST=0` disables it; a positive `RAYON_NUM_THREADS` or a tsconfig `checkers` option sets the count), free the checkers with the program and retain file-order output frames; requested syntactic and semantic diagnostics (oxlint `--type-check`) cover only the files the request lists, as tsgolint does: other program files are not reported, global diagnostics are reported once per program on its tsconfig, declaration diagnostics are reported when `declaration` or `composite` is set, and listed files outside every tsconfig are type-checked in an inferred program ([regressions](../crates/tsrs_lint/tests/integration/headless.rs)); type-check diagnostics include a `category` field (`error`, `warning`, or `message`) so oxlint can map plugin warnings to warnings instead of errors (#1031, [regression](../crates/tsrs_lint/tests/integration/headless.rs)); each type error's description has its message chain, one line for each message, as `tsc` prints it, where tsgolint sends only the first line ([regression](../crates/tsrs_lint/tests/integration/headless.rs)); with semantic reporting enabled, every listed file is type-checked before rules run, so errors retain their file locations ([#955](https://github.com/oxc-project/tsrs/pull/955)); semantic reporting and linting share the pool checker that owns each file, accepting history-dependent diagnostics and fixes ([evidence](../notes/perf-tsgolint-shared-checker.md)); switch default-case comments honor the default marker and custom ECMAScript patterns, including lookarounds, backreferences and scoped `i`/`m`/`s` modifiers ([oracle regressions](../crates/tsrs_lint/tests/fixtures/switch_exhaustiveness_check/REFERENCE)); invalid patterns return protocol errors; virtual source overrides participate in package resolution and include globs ([overlay test](../crates/tsrs_lint/tests/integration/headless.rs)) ([concurrency test](../crates/tsrs_lint/tests/integration/headless.rs), [lifecycle tests](../crates/tsrs_lint/tests/integration/lifecycle.rs), [binding ownership test](../crates/tsrs_compiler/tests/integration/programregions_test.rs)) | | JSON Unicode escape validation | partial | Lint payloads use the API transport's strict decoder, which rejects unpaired surrogate escapes with pinned Go's error text. The native Rust JSON decoder (`tsrs_core::json`) replaces them with U+FFFD, whereas pinned Go rejects them ([protocol tests](../crates/tsrs_lint/tests/integration/protocol.rs), [headless tests](../crates/tsrs_lint/tests/integration/headless.rs)) | | Type checking (`--noEmit`) | yes | All 13,700 error baselines and 12,998 `.types` / `.symbols` baselines match in both histories with the upstream emit sequence; flow-memo keys preserve full-width pointers on Windows and other 64-bit plain-pointer builds, keeping type-query initial states distinct (`recursiveTypesWithTypeof`, `stringLiteralsWithTypeAssertions01`); reserved high-range symbol IDs keep diagnostic truncation aligned with Go (`unique-symbol-link-id-truncation`); `using` with only `[Symbol.asyncDispose]` suggests `await using` (`usingAsyncDisposable`); JS classes eagerly check their own constructor-declared properties after their members, making implicit-any diagnostics stable for both class declarations and expressions (`flakyDiagnosticsJsClassPropertyInitializedToUndefined`); inferred type parameters are sorted by `CompareTypes` before constructing conditional type mappers (`stableTypeMapperOrdering`); merged-interface TS2320/TS2430 errors belong to the first declaration regardless of checker visit order, including when that declaration is in a skipped library (`mergedInterfaceAugmentationDiagnostics`, `mergedInterfaceDefaultLibraryDiagnostics`, `mergedInterfaceInheritanceDiagnostics`); type-argument inference caches distinct priority and variance states and reports the expected TS2345 for correlated union arguments (`inference-type-argument-variance`); static properties avoid contextual typing by their own class and spurious circularity errors (`classStaticPropertyNoSpuriousCircularityError1`); module import attribute types require string literals and reject template literals (`importAttributeType1`); pure return-type inference remains filtered by its constraint during recursive calls (`recursiveTypeInferenceReturnTypeConstraint`); the corrected `customConditions` fixture exercises both conditions and selects `browser` with package exports enabled, `index` with them disabled; empty and dot filename stems, trailing-slash type references, and NodeNext directory-import TS2834 match source 31; `typeof import()` qualifier names do not add emit-only missing-name diagnostics (`noFlakyDiagnosticsTypeofImportTypeQualifier1`, `noFlakyDiagnosticsTypeofImportTypeQualifier2`); deferred imports without namespace bindings report TS18117, including in unchecked JavaScript (`importDeferInvalidDefault`); enum computed-name expressions are checked even when their names have a grammar error, preserving expression diagnostics and reference marking (`missingIdentifierInEnumComputedNameNoFlake`, `parserComputedPropertyName16`); generic mapped-type `keyof` with renamed keys simplifies in bare and template-literal positions (`mappedTypeConstraints2`) and recursive indexed access (`mappedTypeAsClauseIntersectionConstraintIndexedAccess`); an import of an ambient module declared in the same file does not probe the filesystem for a package, including in the resolution trace (`ambientModuleImportingItselfNotResolved`); a relative type reference looked up in a type root uses a normalized candidate path, as in the resolution trace of tsgo (`type-root-relative-candidate`); a type reference or relative import whose name is only a drive root (`C:`) uses the candidate `C:/` as in tsgo, without the probe of `C:.d.ts` that panicked when the drive existed (`type-reference-drive-root`, [regression](../crates/tsrs_module/tests/integration/resolver_drive_root_test.rs)); a type reference or module name that ends with a directory separator skips the file lookup in a type root, as tsgo does (`type-root-trailing-separator-name`, `type-root-trailing-separator-module`); a relative import rewritten into a referenced project reports TS2878 when the two projects' root or output directories have different roots, such as drives, as in tsgo ([regression](../crates/tsrs_cli/tests/integration/rewrite_import_cross_drive_reference.rs)); conditional-type simplification caches reading and writing separately, preserving the write-side TS2322 (`simplifiedConditionalTypeWritingCache`); JavaScript JSDoc `@extends` type arguments apply to call, mixin, element-access, parenthesized, and conditional heritage expressions, and incompatible tags name the full heritage expression (`extendsTag7`–`extendsTag14`); mapped types in JavaScript JSDoc `@extends` and `@augments` type arguments match Go without panicking (`jsdoc-heritage-mapped-type`, `jsdoc-heritage-mapped-type-diagnostics`); async generator `yield` operands and `yield*` async iterables with no awaited type report TS1321, TS1062 or TS1322 and infer a `never` yield type without panicking (`async-generator-invalid-thenable-yield`); beside other yields, where pinned tsgo panics, the other yields give the yield type ([regression](../crates/tsrs_cli/tests/integration/async_generator_missing_yield_type.rs)); undefined-property widening caches by symbol identity, preserving the `undefinedPropertyDeclarationOrder` fixture and canonical `objectLiteralNormalization` baselines; a static initializer that assigns a later readonly property through a nested access (`C.self.later = 1`) reports TS2540 without spurious TS7022 circularity errors, as the declaration-order check skips a nested access before it resolves the property's type (`nested-property-access-declaration-order`); top-repository comparisons still report known parity gaps and tsrs failures; 0.20.1 removes a union-constraint shortcut that could miss `NoInfer` constituents (#808) | | Standard library typings | yes | Source 40 imports upstream `lib.dom.d.ts` and `lib.webworker.d.ts` byte for byte, including their expanded CSS, DOM, Serial, and WebTransport declarations; the two upstream type-baseline changes match. `esnext.promise` selects `lib.esnext.promise.d.ts`; `Promise.allKeyed` and `Promise.allSettledKeyed` preserve object keys and awaited value types (`promiseAllKeyed`). Source-phase imports add `lib.esnext.modulesource.d.ts` to the `esnext` aggregate and expose `AbstractModuleSource`. Source 62 adds `lib.esnext.iterator.d.ts` to that aggregate and maps `--lib esnext.iterator` to it, exposing `IteratorObject.chunks`, `join`, and `includes` plus `Iterator.zip` and `zipKeyed`; all six new compiler variants match error, type, symbol, and JavaScript baselines; replacement libraries retain discovery order when they share a priority (`libReplacementOrder`); `es2023.intl` adds `Intl.PluralRules.selectRange` with an `Intl.LDMLPluralRule` result (`intlPluralRulesSelectRangeES2023`). Windows `noembed` executable paths use the existing OS realpath normalization before adjacent-library lookup (`test_noembed_executable_realpath_uses_compiler_path_spelling` and the `npm_lib_path` CLI tests; Windows runtime validation pending). |