Skip to content

Conversation

@brrichards
Copy link
Contributor

Removes the unicorn/no-useless-fallback: off override from the @fluidframework/tree package and fixes the resulting errors. This is part of an ongoing effort to incrementally remove global ESLint rule overrides from eslint.config.mts and .eslintrc.cjs.

Copilot AI review requested due to automatic review settings January 12, 2026 16:33
@brrichards brrichards requested a review from a team as a code owner January 12, 2026 16:33
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 PR enables the ESLint rule unicorn/no-useless-fallback-in-spread for the @fluidframework/tree package by removing the rule override from both ESLint configuration files and fixing the three instances where unnecessary ?? {} fallbacks were used in spread operations.

Changes:

  • Removed unicorn/no-useless-fallback-in-spread: "off" from both eslint.config.mts and .eslintrc.cjs
  • Updated three spread operations to remove unnecessary ?? {} fallbacks, as spreading undefined is safe in JavaScript

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/dds/tree/eslint.config.mts Removed the rule override for unicorn/no-useless-fallback-in-spread
packages/dds/tree/.eslintrc.cjs Removed the rule override for unicorn/no-useless-fallback-in-spread
packages/dds/tree/src/simple-tree/api/schemaFactoryBeta.ts Removed unnecessary ?? {} fallback when spreading optional options parameter
packages/dds/tree/src/simple-tree/api/schemaFactoryAlpha.ts Removed unnecessary ?? {} fallback when spreading optional options parameter
packages/dds/tree/src/feature-libraries/sequence-field/rebase.ts Removed unnecessary ?? {} fallback when spreading potentially undefined remains property

@brrichards brrichards merged commit 7f6e139 into microsoft:main Jan 12, 2026
34 checks passed
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
Removes the unicorn/no-useless-fallback: off override from the
@fluidframework/tree package and fixes the resulting errors. 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-useless-fallback 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