Fix PascalCase class exported via export { Name } incorrectly treated as React component#110
Merged
ArnaudBarre merged 2 commits intoJun 14, 2026
Conversation
…ed as React component
When a PascalCase-named class is exported through `export { ClassName }`,
resolve the local variable's declaration via scope analysis. For classes,
apply the same superClass + render method validation used for inline
class exports. For variables with initializers, pass the init expression
to handleExportIdentifier for proper component detection.
export { Name } incorrectly treat…export { Name } incorrectly treated as React component
Owner
|
I updated the code to re-use the existing logic. |
John4064
pushed a commit
to Doble-Technologies/MatchingMakingWebsite
that referenced
this pull request
Jun 21, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | devDependencies | patch | [`0.5.2` → `0.5.3`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.5.2/0.5.3) | --- ### Release Notes <details> <summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary> ### [`v0.5.3`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#053) [Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.5.2...v0.5.3) - Fix check for non component class exported via `export { }` [#​110](ArnaudBarre/eslint-plugin-react-refresh#110) (fixes [#​109](ArnaudBarre/eslint-plugin-react-refresh#109)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzMuNCIsInVwZGF0ZWRJblZlciI6IjQzLjIzMy40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: Renovate Bot <renovate@git.rcslabs.dev> Co-authored-by: mattdimegs <mdimeglio34@gmail.com> Reviewed-on: https://git.rcslabs.dev/Doble/MatchingMakingSite/pulls/43 Reviewed-by: mattdimegs <mdimeglio34@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When a PascalCase-named class is exported through
export { ClassName }, resolve the local variable's declaration via scope analysis.Fixes #109