-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(eslint-rules): add prefer-direct-reexport eslint rule #36581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Victor Genaev (mainframev)
merged 9 commits into
master
from
mainframev/prefer-direct-reexport-rule
Aug 19, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
817f2bd
feat(tools): add prefer-direct-reexport eslint rule
mainframev 8ac53b3
refactor(tools): address review feedback on prefer-direct-reexport
mainframev bbc24c3
test(tools): cover locally used aliases in prefer-direct-reexport
mainframev b3b9f89
fix(tools): skip prefer-direct-reexport for imports used outside the …
mainframev 2b387fe
docs(tools): trim checkFunctionLike doc block in prefer-direct-reexport
mainframev 79d0f76
test(tools): clarify and group prefer-direct-reexport valid cases
mainframev 8fed98c
refactor: fix reported re-export rule errors
mainframev e2a3cde
test(tools): group identity wrapper cases in prefer-direct-reexport spec
mainframev 517d9ff
chore: change files
mainframev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-headless-components-preview-562759ff-fce6-436c-8255-503e22d8ba20.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: adjust re-exports after direct re-exports workspace rule", | ||
| "packageName": "@fluentui/react-headless-components-preview", | ||
| "email": "vgenaev@gmail.com", | ||
| "dependentChangeType": "none" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...nts/react-headless-components-preview/library/src/components/Accordion/Accordion.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
.../react-headless-components-preview/library/src/components/Menu/MenuList/MenuList.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,14 @@ | ||
| import type { | ||
| import type { MenuListState as MenuListBaseState } from '@fluentui/react-menu'; | ||
|
|
||
| export type { | ||
| MenuListProps, | ||
| MenuListSlots, | ||
| MenuListState as MenuListBaseState, | ||
| MenuCheckedValueChangeData, | ||
| MenuCheckedValueChangeEvent, | ||
| } from '@fluentui/react-menu'; | ||
|
|
||
| export type { MenuListProps } from '@fluentui/react-menu'; | ||
|
|
||
| export type MenuListState = MenuListBaseState & { | ||
| root: { | ||
| focusgroup?: string; | ||
| }; | ||
| }; | ||
|
|
||
| export type { MenuListSlots, MenuCheckedValueChangeData, MenuCheckedValueChangeEvent }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
...act-headless-components-preview/library/src/components/Nav/NavDivider/NavDivider.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,8 @@ | ||
| import type { DividerProps, DividerState } from '../../Divider'; | ||
| import type { DividerProps } from '../../Divider'; | ||
|
|
||
| export type { DividerSlots as NavDividerSlots } from '../../Divider'; | ||
| export type { DividerSlots as NavDividerSlots, DividerState as NavDividerState } from '../../Divider'; | ||
|
|
||
| /** | ||
| * NavDivider Props | ||
| */ | ||
| export type NavDividerProps = Omit<DividerProps, 'vertical'>; | ||
|
|
||
| /** | ||
| * State used in rendering NavDivider | ||
| */ | ||
| export type NavDividerState = DividerState; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
...adless-components-preview/library/src/components/TeachingPopover/TeachingPopover.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.