Repository navigation
fix(lint): visit destructuring default targets as patterns - #1175
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codex Review Summary: β CompletedThis 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. |
d727a39 to
0111b1a
Compare
Merging this PR will not alter performanceWarning oxc-project has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed. 1 warning
Comparing Footnotes
|
0111b1a to
c69c076
Compare
Performance change vs mainWorkflow run Β· main Clef gate: Clef estimated 27.3% default and single-threaded wall time, 17.6% peak RSS, 21.4% 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)
|
Ports oxc-project/tsgolint#1428 (
bac05fd1), including its baseline update.In a destructuring assignment, the target of a default value was visited as an expression instead of a pattern, so rules that only check array or object expressions also checked targets such as
[a]in[[a] = [b]] = c. Like typescript-eslint, which parses this as anAssignmentPattern, an=assignment inside a pattern now visits its left side as a pattern invisit_lint_nodes, as a top-level assignment already did.Two
unbound_methodregression cases with nested destructuring defaults, such as({ nested: { m: a } = new C() } = {}), now report the method reference. Theno-unsafe-assignmentbaseline was last exported at6b043c5f, so the refresh also picks up the oxc-project/tsgolint#1396 cases.