You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
require-await-core-summary-write: false negative on local summary aliases of core.summary #43324
The rule only flags <core-like>.summary...write() where the root identifier matches isCoreLikeIdentifier (/^core/i, line 24-26). It cannot see through a local variable that aliases core.summary, so a dropped await on such an alias is silently missed.
getRootIdentifier for summary.write() returns "summary", which fails /^core/i, so rootsSummary() returns false and the call is never flagged.
Live evidence (this exact aliasing idiom is used in the corpus)
These sites all currently await correctly, but they establish that the alias pattern is real and in active use — dropping the await here would produce the exact bug the rule exists to prevent, undetected:
Track simple, single-assignment const/let locals bound to core.summary (or destructured const { summary } = core) within the enclosing scope, and treat <alias>.write() / <alias>.addRaw(...).write() bare expression statements as flaggable.
Preserve zero false positives: only resolve aliases whose initializer is statically core.summary (or <coreLike>.summary); do not flag re-assigned or parameter-shadowed bindings whose source is unknown.
Add invalid-case tests for the two repros above and a valid-case test where summary is reassigned to a non-core value.
Priority
High — the alias name summary is a strong intent signal, the idiom is live in two corpus files, and the failure mode (truncated/missing step summary on early process exit) is exactly the rule's target.
Activity
github-actions commentedon Jul 4, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
fix(eslint): track core.summary local aliases in require-await-core-s…