fix(lint): do not convert empty object types to interfaces#8921
fix(lint): do not convert empty object types to interfaces#8921
Conversation
🦋 Changeset detectedLatest commit: e993d27 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis PR prevents the useConsistentTypeDefinitions lint rule from converting empty object type aliases (e.g. Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.changeset/angry-parts-change.md:
- Line 5: Replace the incorrect phrase "the both rules" with "both rules" in the
changeset text (the sentence describing the interaction between
useConsistentTypeDefinitions and noEmptyInterface) so it reads: "...when both
rules are enabled." Ensure you update only that phrase in the existing sentence.
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Fixes #8759
Added an exception to the
useConsistentTypeDefinitionsrule to avoid converting empty object types (type Foo = {}) to interfaces (interface Foo {}) as it will conflict with thenoEmptyInterfacerule and will end up with an infinite loop while applying unsafe fixes if the both rules are enabled.Docs
N/A