eslint-plugin-react-hooks: Fix international component name compatibility
Summary
This fixes compatiblity with international functional component names such as ÄndraVärde in the ESLint rule RulesOfHooks.
The problem is a Regex that only allows component names to start with the characters A-Z when in reality characters from other languages should be supported too.
Fixes #31446
How did you test this change?
I added a unit test and verified that the rule failed just like it does in my own projects, then I did my modification and verified that the tests pass.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| react-compiler-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 8, 2024 10:33am |
Q
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
Bump, the issue still isn't solved.
Bump (I'd really like to see this work get merged)
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
Bump.