This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 useCamelCase
for React Components
#3117
Labels
useCamelCase
for React Components
#3117
Environment information
Playground
What happened?
MarkdownRenderer
useCamelCase
rule reported a warning because of the component nameExpected result
Custom components must use upper case naming or React renders them as native HTML elements. Thus, applying the suggested fix isn't safe.
How the exact fix should look like is unclear to me. One option could be to not report a diagnostic if the function returns
JSX
but doing so has the downside that:It thus, may mean that we shouldn't enabale the rule by default or, exclude functions.
Related issue typescript-eslint/typescript-eslint#2607
Code of Conduct
The text was updated successfully, but these errors were encountered: