Skip to content

Conversation

@tt-a1i
Copy link
Contributor

@tt-a1i tt-a1i commented Jan 6, 2026

Summary

Enables @typescript-eslint/await-thenable rule and fixes the single violation found.

Changes:

  • rslint.json: Changed @typescript-eslint/await-thenable from off to error
  • packages/rspack/src/exports.ts: Removed unnecessary await on syncTraceEvent() which returns void, not a Promise

Related to #11761

AI Assistance Disclosure

I used Codex to review the changes, sanity-check the implementation against existing patterns, and help spot potential edge cases.

- Enable @typescript-eslint/await-thenable rule (off -> error)
- Remove unnecessary await on syncTraceEvent() which returns void
@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Jan 6, 2026
@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 875a76f
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/695dc170eb58240008154a00

@tt-a1i tt-a1i marked this pull request as ready for review January 6, 2026 15:39
@tt-a1i tt-a1i requested a review from hardfist as a code owner January 6, 2026 15:39
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

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

Thank you!

@chenjiahan chenjiahan enabled auto-merge (squash) January 7, 2026 02:14
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 7, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing tt-a1i:fix/enable-await-thenable-rule (875a76f) with main (2ed1576)

Summary

✅ 16 untouched benchmarks
⏩ 1 skipped benchmark1

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

@chenjiahan chenjiahan merged commit d424733 into web-infra-dev:main Jan 7, 2026
77 of 79 checks passed
LingyuCoder pushed a commit that referenced this pull request Jan 8, 2026
* fix(lint): enable await-thenable rule and fix violation

- Enable @typescript-eslint/await-thenable rule (off -> error)
- Remove unnecessary await on syncTraceEvent() which returns void

* Update rslint.json

---------

Co-authored-by: neverland <jait.chen@foxmail.com>
hardfist added a commit that referenced this pull request Jan 23, 2026
* react_server_components transform

* fix: ReactServerComponents

* ReactServerComponentPlugin

* fix: rspack_loader_swc Wtf8Atom

* feat: ReactServerComponentPlugin

* feat: ServerEntryModules

* exports_info

* temp

* feat: import with layer

* fix: before pass

* export ReactServerComponentsPlugin

* ServerEntries

* feat: client_entry_loader

* feat: client compiler

* feat: traverse_modules

* feat: ClientReferenceManifestPlugin

* feat: react_server_components layer

* fix ReactClientPlugin

* fix: ClientReferenceManifestPlugin

* refactor: rename to ReactServerPlugin

* remove eager

* feat: collect entry css files

* feat: use server-entry

* server actions transform

* feat: action_entry_loader

* collect server_actions

* temp

* manifest-loader

* RscManifestRuntimeModule

* fix: build_server_consumer_module_map

* fix: entry_css_files

* feat: record_entry_js_files

* refactor: entry_css_files

* fix: entry js files and entry css files should concat prefix

* remove unused code

* chore: rename loader and plugin

* fix: Coordinator

* fix: entry js files prevent hot-module files from being included

* clear PLUGIN_STATE_BY_COMPILER_ID

* feat: add_include client action

* feat: prev_server_component_hashs

* fix: client compiler not rebuild right

* export RSC_LAYERS_NAMES

* fix: remove import with layer

* refactor: rsc_pass

* refactor: rsc_meta

* refactor: to_module_ref

* fix: cargo clippy

* fix: lint and spelling

* api changed

* refactor: use get_module_resource

* fix: ts type

* fix: compiler watching

* feat: check should_inject_ssr_modules

* fix: only invalidate client after proxying client watching

* fix: client module chunks should exclude hot module replacement js

* chore: rename coordinator mod

* fix: collect_component_info_from_entry_denendency

* fix: panic in create_client_entries

* fix: browser action

* rm ACTION_BROWSER layer

* fix: use atomic ref

* refactor client plugin

* fix: should handle compile failed

* chore: rm unused print

* fix: use server-entry mix use client

* feat: ensureServerActions

* fix: RSC_HOT_RELOADER

* refactor: create_client_entries

* fix: encryptActionBoundArgs and decryptActionBoundArgs

* fix: should collect entry css files in after_process_assets hook

* fix: with concat module

* chore(deps): update patch npm dependencies (#12647)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update patch crates (#12646)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: run ci/eco-ci/eco-benchmark on v2 branch (#12650)

* fix: report error when access module_graph in loader (#12639)

* fix: report error when access module_graph in loader

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat(rstest): add preserveNewUrl option to keep new URL untouched (#12632)

* feat(rstest): add preserveNewUrl option to keep new URL untouched

* fix: format Rust code with rustfmt

* fix(lint): enable @typescript-eslint/await-thenable rule (#12644)

* fix(lint): enable await-thenable rule and fix violation

- Enable @typescript-eslint/await-thenable rule (off -> error)
- Remove unnecessary await on syncTraceEvent() which returns void

* Update rslint.json

---------

Co-authored-by: neverland <jait.chen@foxmail.com>

* fix: cargo clippy

* refactor: rm RSC_HOT_RELOADER runtime module

* fix: lint check

* refactor: rename RscPluginLayers

* warp rsc in namespace

* fix: rsc client plugin

* fix: cargo fmt

* add next.js Copyright

* fix: user can change fileDependencies in done hook

* chore: add comments

* fix: cargo fmt

* rm ustr dependencies

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: harpsealjs <lingyucoder@gmail.com>
Co-authored-by: hardfist <yangjianzju@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Max <fi3ework@gmail.com>
Co-authored-by: Tu Shaokun <53142663+tt-a1i@users.noreply.github.com>
Co-authored-by: neverland <jait.chen@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants