Skip to content

fix(lint/consistent-type-exports): only check star exports that resolve to a source file - #1185

Merged
camc314 merged 1 commit into
fix/lint-await-thenable-1434from
fix/lint-consistent-type-exports-1446
Dec 1, 2026
Merged

camc314 merged 1 commit into
fix/lint-await-thenable-1434from
fix/lint-consistent-type-exports-1446

Conversation

@camc314

@camc314 camc314 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Ports oxc-project/tsgolint#1446 (2570759c), including its baseline update.

For export *, the rule used the module specifier's symbol, which can also be an ambient declare module with no source file, so such modules were checked and reported. Like typescript-eslint, the specifier is now resolved with the module resolver, and the star export is checked only if that gives a source file in the program.

// ambient.d.ts
declare module 'virtual' {
  export interface T {}
}

// index.ts
export * from 'virtual'; // no longer reported

As in tsgolint, export * from foo; with a non-string specifier now panics in get_resolved_module_from_module_specifier ("moduleSpecifier must be a StringLiteralLike").

Copilot AI balanced review requested due to automatic review settings November 30, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T23:20:08.346113Z a05a096 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@camc314
camc314 added this pull request to stack #1163 November 30, 2026 14:32
@camc314
camc314 force-pushed the fix/lint-consistent-type-exports-1446 branch from 165b187 to 5b2b65c Compare November 30, 2026 14:55
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Performance change vs main

Workflow run · main 6083178c7b89 → PR merge cf7650f77086 (head a05a0962cedb)

Clef gate: Clef estimated 18.2% default and single-threaded wall time, 17.8% peak RSS, 11.7% 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.
Incremental runs start with fresh build info before every invocation; check runs disable incremental compilation.

Project Mode Single-thread wall time Δ Single-thread instructions Δ Default wall time Δ Default peak RSS Δ
vscode check +5.8% 0.000% +0.3% -0.2%
vscode incremental -1.7% 0.000% -0.9% 0.0%
xstate-main check -11.1% +0.001% -3.2% -0.4%
xstate-main incremental +0.9% 0.000% +0.3% +0.4%
webpack check -0.3% -0.001% +1.2% -0.1%
webpack incremental -1.8% +0.001% +3.5% -0.1%
mui-docs check -2.5% -0.001% -4.0% -1.9%
mui-docs incremental -2.1% 0.000% -1.6% 0.0%
Compiler check -0.9% 0.000% +1.0% -0.2%
Compiler incremental -2.2% 0.000% +2.9% -2.4%
Compiler-Unions check -0.5% 0.000% -1.2% +0.3%
Compiler-Unions incremental +2.9% 0.000% +4.3% -1.9%
cal-diy check -1.7% -0.001% +0.4% -0.8%
cal-diy incremental +1.5% +0.001% +4.4% +0.1%
formbricks-web check +2.8% -0.002% +2.0% 0.0%
formbricks-web incremental -8.6% -0.004% -1.7% +0.2%
supabase-studio check -0.2% +0.003% -2.2% -0.3%
supabase-studio incremental +0.8% +0.007% +0.9% -0.1%
t3code-server check +0.1% 0.000% +6.2% +0.1%
t3code-server incremental +4.4% -0.004% -2.2% 0.0%
mikro-orm check -1.2% +0.001% +3.7% -0.1%
mikro-orm incremental -1.6% -0.001% +1.0% -0.2%
next-packages-next check +0.9% +0.001% -0.3% +0.6%
next-packages-next incremental -2.4% 0.000% -6.4% -0.1%
next-root check -1.1% 0.000% +1.4% +0.7%
next-root incremental -0.3% +0.004% +0.9% +0.2%
storybook check +2.0% 0.000% +0.1% +0.2%
storybook incremental -2.1% -0.020% +0.3% -0.5%
nuxt check +2.8% -0.002% +0.4% +0.3%
nuxt incremental +2.1% 0.000% -0.1% +0.1%
playwright check -2.1% -0.001% -1.1% -0.1%
playwright incremental -1.4% -0.001% -2.5% 0.0%
drizzle-orm check +0.9% -0.001% +1.7% +0.4%
drizzle-orm incremental +1.6% -0.001% -0.6% +0.2%
typeorm check -5.3% -0.001% -2.8% -0.3%
typeorm incremental -0.9% 0.000% +5.2% +0.2%
date-fns check -1.5% +0.002% -0.6% +0.8%
date-fns incremental +1.3% +0.020% -0.5% +0.2%
opencode-core check -1.5% -0.004% +0.3% 0.0%
opencode-core incremental -2.5% -0.003% +1.2% +0.1%
lobehub check -1.1% 0.000% +0.8% +0.5%
lobehub incremental -3.1% -0.003% +0.2% +0.1%
sentry check -1.0% +0.001% +0.4% 0.0%
sentry incremental +1.9% -0.013% +0.3% +0.2%

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)
Project Mode Single-thread wall time (s) Single-thread instructions Default wall time (s) Default peak RSS (MiB)
vscode check 16.866 → 17.856 81,815,391,832.5 → 81,815,443,740 2.968 → 2.889 1806.2 → 1803.1
vscode incremental 14.571 → 14.043 84,217,725,317 → 84,217,713,444 2.370 → 2.335 2129.3 → 2128.7
xstate-main check 1.122 → 1.005 5,520,467,279 → 5,520,559,778.5 0.298 → 0.287 240.3 → 239.3
xstate-main incremental 1.036 → 1.017 5,679,422,437.5 → 5,679,383,154.5 0.432 → 0.434 241.1 → 242.0
webpack check 1.019 → 1.026 10,759,865,942.5 → 10,759,813,517.5 0.216 → 0.218 402.0 → 401.6
webpack incremental 1.655 → 1.638 10,980,071,036.5 → 10,980,349,051.5 0.375 → 0.408 398.5 → 398.3
mui-docs check 2.864 → 2.744 32,889,987,257.5 → 32,889,148,519.5 1.145 → 1.106 1212.2 → 1188.9
mui-docs incremental 4.309 → 4.196 34,222,514,051.5 → 34,222,700,247 1.981 → 1.919 1140.2 → 1140.4
Compiler check 0.227 → 0.218 1,745,216,712 → 1,745,213,154 0.097 → 0.097 77.3 → 77.1
Compiler incremental 0.162 → 0.157 1,759,519,937 → 1,759,525,923 0.067 → 0.069 80.2 → 78.3
Compiler-Unions check 0.255 → 0.256 3,014,355,980 → 3,014,357,096.5 0.114 → 0.114 79.8 → 80.1
Compiler-Unions incremental 0.565 → 0.628 3,026,971,700 → 3,026,964,060.5 0.291 → 0.277 83.4 → 81.8
cal-diy check 3.987 → 3.954 28,707,298,030.5 → 28,706,852,433.5 1.253 → 1.297 1340.4 → 1330.2
cal-diy incremental 6.596 → 5.672 30,308,036,244.5 → 30,308,169,871.5 2.918 → 3.149 1245.9 → 1247.2
formbricks-web check 5.217 → 5.313 36,892,823,966 → 36,892,148,185 1.215 → 1.232 1557.8 → 1557.2
formbricks-web incremental 4.635 → 4.328 39,475,263,862 → 39,473,707,834.5 1.188 → 1.152 1598.0 → 1601.8
supabase-studio check 5.429 → 5.452 40,541,599,770.5 → 40,542,088,152 1.326 → 1.293 1291.0 → 1286.6
supabase-studio incremental 5.315 → 5.255 43,469,727,518.5 → 43,472,147,473.5 1.214 → 1.226 1343.1 → 1342.3
t3code-server check 5.200 → 5.030 40,782,149,772 → 40,781,709,937 1.492 → 1.545 1297.8 → 1298.8
t3code-server incremental 4.987 → 5.080 41,289,452,949.5 → 41,288,322,739.5 1.542 → 1.481 1293.2 → 1292.6
mikro-orm check 5.282 → 5.076 44,047,242,498.5 → 44,047,757,390.5 0.928 → 0.963 1255.9 → 1254.5
mikro-orm incremental 6.143 → 5.966 44,356,429,566.5 → 44,356,753,728 1.075 → 1.108 1237.4 → 1235.3
next-packages-next check 2.287 → 2.265 17,277,870,063.5 → 17,278,064,612.5 0.565 → 0.550 551.4 → 554.8
next-packages-next incremental 2.174 → 2.232 17,589,227,520.5 → 17,589,232,853.5 0.680 → 0.651 555.2 → 554.5
next-root check 1.277 → 1.250 13,893,572,432 → 13,893,449,113.5 0.265 → 0.267 425.7 → 428.8
next-root incremental 1.440 → 1.412 14,350,188,040 → 14,350,525,538 0.373 → 0.380 466.7 → 467.7
storybook check 0.992 → 0.987 8,813,007,742.5 → 8,812,967,246.5 0.225 → 0.230 389.8 → 390.4
storybook incremental 1.351 → 1.425 9,134,200,803 → 9,131,923,092 0.318 → 0.323 368.9 → 366.9
nuxt check 1.064 → 1.069 8,428,952,291 → 8,428,651,537 0.288 → 0.285 383.7 → 384.9
nuxt incremental 1.176 → 1.215 8,824,765,271 → 8,824,736,192 0.355 → 0.335 383.9 → 384.2
playwright check 0.905 → 0.900 7,363,158,878 → 7,363,042,421 0.284 → 0.268 357.1 → 356.6
playwright incremental 1.163 → 1.107 7,539,343,943 → 7,539,340,448.5 0.351 → 0.353 336.7 → 336.6
drizzle-orm check 0.685 → 0.677 5,907,237,807.5 → 5,906,991,701 0.239 → 0.238 371.1 → 372.6
drizzle-orm incremental 0.724 → 0.739 6,075,943,299 → 6,076,042,482.5 0.226 → 0.224 340.8 → 341.6
typeorm check 1.230 → 1.240 6,344,498,024 → 6,344,391,971.5 0.250 → 0.238 223.9 → 223.3
typeorm incremental 0.921 → 0.920 6,728,689,968.5 → 6,728,643,706.5 0.257 → 0.271 230.2 → 230.6
date-fns check 0.373 → 0.371 3,297,273,224 → 3,297,234,721 0.114 → 0.118 149.6 → 150.8
date-fns incremental 0.363 → 0.371 3,530,331,643 → 3,530,798,760 0.134 → 0.141 161.3 → 161.6
opencode-core check 2.878 → 2.744 25,108,535,523.5 → 25,108,818,951 1.583 → 1.650 1184.1 → 1184.6
opencode-core incremental 3.018 → 3.104 25,468,653,213.5 → 25,468,183,937 1.304 → 1.297 1090.4 → 1091.0
lobehub check 19.754 → 19.558 185,341,930,535 → 185,335,999,542 6.198 → 6.218 4378.5 → 4401.3
lobehub incremental 18.246 → 17.865 188,899,393,476 → 188,898,003,396.5 7.056 → 7.080 4428.5 → 4434.3
sentry check 11.683 → 11.496 91,309,188,683.5 → 91,310,610,067 2.352 → 2.400 1755.7 → 1755.2
sentry incremental 11.297 → 11.740 93,279,833,429 → 93,272,991,423.5 3.935 → 4.078 1893.2 → 1896.3

tsrs-lint

Release tsrs-lint linting each project's source files with all 61 rules. After a warmup run of each binary, alternating main/PR pairs (10 per mode) measure wall time, CPU time and peak RSS with TSRS_FAST unset and with TSRS_FAST=1.

Project Mode Wall time Δ CPU time Δ Peak RSS Δ Diagnostics (main → PR)
webpack default -1.1% +0.6% 0.0% 35405, identical
webpack TSRS_FAST=1 +3.2% +1.7% 0.0% 35405, identical
drizzle-orm default -2.7% -1.2% 0.0% 7087, identical
drizzle-orm TSRS_FAST=1 +1.9% +3.0% 0.0% 7087, identical
xstate-main default +2.4% +1.5% -0.4% 6489, identical
xstate-main TSRS_FAST=1 +1.3% +0.6% +0.3% 6489, identical

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)
Project Mode Wall time (s) CPU time (s) Peak RSS (MiB)
webpack default 0.521 → 0.519 2.557 → 2.582 454.7 → 454.6
webpack TSRS_FAST=1 0.513 → 0.527 2.524 → 2.590 454.3 → 454.5
drizzle-orm default 0.355 → 0.355 1.826 → 1.784 392.5 → 392.6
drizzle-orm TSRS_FAST=1 0.350 → 0.353 1.761 → 1.812 392.7 → 392.8
xstate-main default 0.461 → 0.472 2.042 → 2.056 335.6 → 334.4
xstate-main TSRS_FAST=1 0.458 → 0.465 2.040 → 2.044 333.3 → 334.1

@camc314
camc314 force-pushed the fix/lint-consistent-type-exports-1446 branch 2 times, most recently from be7d6d5 to 64bc1c0 Compare November 30, 2026 18:12
@codspeed

codspeed Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by 4.76%

Warning

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.

2 warnings

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
✅ 7 untouched benchmarks
⏩ 8 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Memory webpack 85.9 MB 82 MB +4.76%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/lint-consistent-type-exports-1446 (a05a096) with fix/lint-await-thenable-1434 (6083178)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@camc314
camc314 force-pushed the fix/lint-consistent-type-exports-1446 branch from 64bc1c0 to f8f08ea Compare November 30, 2026 22:22
@camc314
camc314 force-pushed the fix/lint-consistent-type-exports-1446 branch from f8f08ea to a05a096 Compare November 30, 2026 23:18
@camc314
camc314 added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 534aabe Dec 1, 2026
77 checks passed
@camc314
camc314 deleted the fix/lint-consistent-type-exports-1446 branch December 1, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants