Skip to content

Fix PascalCase class exported via export { Name } incorrectly treated as React component#110

Merged
ArnaudBarre merged 2 commits into
ArnaudBarre:mainfrom
rakleed:109-fix-PascalCase-class-export
Jun 14, 2026
Merged

Fix PascalCase class exported via export { Name } incorrectly treated as React component#110
ArnaudBarre merged 2 commits into
ArnaudBarre:mainfrom
rakleed:109-fix-PascalCase-class-export

Conversation

@rakleed

@rakleed rakleed commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

When a PascalCase-named class is exported through export { ClassName }, resolve the local variable's declaration via scope analysis.

Fixes #109

rakleed and others added 2 commits June 13, 2026 18:53
…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.
@ArnaudBarre ArnaudBarre changed the title Fix PascalCase class exported via export { Name } incorrectly treat… Fix PascalCase class exported via export { Name } incorrectly treated as React component Jun 14, 2026
@ArnaudBarre ArnaudBarre merged commit 202fc4a into ArnaudBarre:main Jun 14, 2026
1 check passed
@ArnaudBarre

Copy link
Copy Markdown
Owner

I updated the code to re-use the existing logic.
This is available in v0.5.3 !

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 { }` [#&#8203;110](ArnaudBarre/eslint-plugin-react-refresh#110) (fixes [#&#8203;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>
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.

PascalCase class exported via export { Name } is incorrectly treated as a React component

2 participants