Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Dec 10, 2025

Explanation

This fixes all suppressed ESLint errors in the remote-feature-flag-controller package.

References

Closes #7388.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Adds explicit types and a private method refactor to the client config service, tightens test typings/utilities, and removes related ESLint suppressions.

  • Remote Feature Flag Controller:
    • ClientConfigApiService (client-config-api-service.ts):
      • Add explicit return types for onBreak/onDegraded (IDisposable).
      • Refactor flattenFeatureFlags to private field method #flattenFeatureFlags and update call site.
    • Controller (remote-feature-flag-controller.ts):
      • Add explicit Promise<void> return type to #updateCache.
  • Tests:
    • ClientConfigApiService test: Import jest.Mock, type createMockFetch to return Mock, adjust Promise params to satisfy lint.
    • RemoteFeatureFlagController test: Annotate createController return type; type getMetaMetricsId default.
  • Tooling:
    • Remove corresponding entries for this package from eslint-suppressions.json.

Written by Cursor Bugbot for commit 9821288. This will update automatically on new commits. Configure here.

@Mrtenz Mrtenz marked this pull request as ready for review December 10, 2025 11:24
@Mrtenz Mrtenz requested review from a team as code owners December 10, 2025 11:24
@Mrtenz Mrtenz force-pushed the mrtenz/fix-lint-remote-feature-flag-controller branch from a4bcc4f to 9821288 Compare December 11, 2025 09:27
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mrtenz Mrtenz added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 1175c01 Dec 11, 2025
281 checks passed
@Mrtenz Mrtenz deleted the mrtenz/fix-lint-remote-feature-flag-controller branch December 11, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix suppressed lint errors in remote-feature-flag-controller

3 participants