Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Dec 2, 2025

This rule had to be disabled in core because the autofixer is very broken. I'm also not sure we want to strictly require one import between type and non-type imports anyway, it's a stylistic preference.


Note

Disables import-x/no-duplicates in the TypeScript ESLint config, updates the rules snapshot, and notes the change and related autofix issue in the changelog.

  • TypeScript ESLint config (packages/typescript/src/index.mjs):
    • Disable import-x/no-duplicates with rationale comments and bug reference.
  • Rules snapshot (packages/typescript/rules-snapshot.json):
    • Reflect import-x/no-duplicates: off.
  • Changelog (packages/typescript/CHANGELOG.md):
    • Add entry under Changed to disable import-x/no-duplicates.
    • Add Fixed note about preventing non-type imports being grouped under type imports due to that rule.

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

@Gudahtt Gudahtt force-pushed the disable-import-no-duplicates branch from 41f5f16 to d06d2c8 Compare December 2, 2025 17:55
@Gudahtt
Copy link
Member Author

Gudahtt commented Dec 2, 2025

See here as well, where it was disabled in core: https://github.com/MetaMask/core/blob/b0328298a6d06cf698531833c262029eebea09d2/eslint.config.mjs#L118

@Gudahtt Gudahtt marked this pull request as ready for review December 2, 2025 17:58
@Gudahtt Gudahtt requested a review from a team as a code owner December 2, 2025 17:58
cryptodev-2s
cryptodev-2s previously approved these changes Dec 2, 2025
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!

This rule had to be disabled in `core` because the autofixer is very
broken. I'm also not sure we want to strictly require one import
between type and non-type imports anyway, it's a stylistic preference.
@Gudahtt
Copy link
Member Author

Gudahtt commented Dec 2, 2025

Rebased to resolve changelog conflicts

@Gudahtt Gudahtt enabled auto-merge (squash) December 2, 2025 18:05
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!

@Gudahtt Gudahtt merged commit cf93ef1 into main Dec 2, 2025
26 checks passed
@Gudahtt Gudahtt deleted the disable-import-no-duplicates branch December 2, 2025 18:15
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.

3 participants