Skip to content

[WTF-2614]: Sort Generated Imports#172

Open
weirdwater wants to merge 6 commits intomasterfrom
wtf/wtf-2614-unordered-imports
Open

[WTF-2614]: Sort Generated Imports#172
weirdwater wants to merge 6 commits intomasterfrom
wtf/wtf-2614-unordered-imports

Conversation

@weirdwater
Copy link
Copy Markdown
Collaborator

Checklist

  • Contains unit tests ✅
  • Contains breaking changes ❌
  • Compatible with: irrelevant
  • Did you update version and changelog? ✅
  • PR title properly formatted ([XX-000]: description)? ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe)

What is the purpose of this PR?

The generated typings did not follow a particular order, causing developers with the sort-imports rule enabled to get alerted by eslint.

Relevant changes

This PR implements the order defined by sort-imports and refactors the import generation to be testable. Unit tests with generated typings have been updated to reflect the new sorting order.

What should be covered while testing?

  • Existing widgets should continue to compile with no typescript errors: The same members should still get imported, just in a different order.

weirdwater and others added 6 commits April 13, 2026 12:38
Co-authored-by: Claude <noreply@anthropic.com>
Update test output snapshots to reflect the new import ordering implemented
in the generate-typings refactoring. Imports are now sorted alphabetically
by module name, with named imports sorted alphabetically within each module,
following eslint sort-imports rules.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

2 participants