Skip to content

Conversation

@brrichards
Copy link
Contributor

@brrichards brrichards commented Jan 12, 2026

Removes the unicorn/no-await-expression-member: off override from the @fluidframework/tree package and fixes the resulting errors. Extracts awaited values into intermediate variables before accessing their members. This is part of an ongoing effort to incrementally remove global ESLint rule overrides from eslint.config.mts and .eslintrc.cjs.

@brrichards brrichards marked this pull request as ready for review January 12, 2026 18:36
@brrichards brrichards requested a review from a team as a code owner January 12, 2026 18:36
Copilot AI review requested due to automatic review settings January 12, 2026 18:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request enables the unicorn/no-await-expression-member ESLint rule for the @fluidframework/tree package by removing the override from both ESLint configuration files and refactoring code to comply with the rule. The rule enforces extracting awaited values into intermediate variables before accessing their members, which improves code readability and debuggability.

Changes:

  • Removed unicorn/no-await-expression-member: "off" from both eslint.config.mts and .eslintrc.cjs
  • Refactored test code to extract awaited values into intermediate variables before member access
  • Updated the getIIDCompressor function to use clearer control flow

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/dds/tree/eslint.config.mts Removed the ESLint rule override for unicorn/no-await-expression-member
packages/dds/tree/.eslintrc.cjs Removed the ESLint rule override for unicorn/no-await-expression-member
packages/dds/tree/src/test/shared-tree/sharedTree.spec.ts Extracted awaited values into intermediate variables before accessing their .summary or other members in multiple test cases
packages/dds/tree/src/test/feature-libraries/node-identifier/nodeIdentifier.spec.ts Refactored getIIDCompressor to avoid member access on awaited expression by using conditional logic

@brrichards brrichards force-pushed the enable-no-await-expression-member branch from c7052a3 to 8bf8c07 Compare January 12, 2026 19:08
@brrichards brrichards merged commit 04fa227 into microsoft:main Jan 12, 2026
30 checks passed
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
…#26179)

Removes the unicorn/no-await-expression-member: off override from the
@fluidframework/tree package and fixes the resulting errors. Extracts
awaited values into intermediate variables before accessing their
members. This is part of an ongoing effort to incrementally remove
global ESLint rule overrides from eslint.config.mts and .eslintrc.cjs.
@brrichards brrichards deleted the enable-no-await-expression-member branch January 16, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants