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
react/display-name false positive on ant-design ColumnsType #2751
Comments
Hey, @ljharb may I give this a shot if you don't mind... |
Go for it! |
@gaara4896 I was going through the rule definition in the code. And it seems like a valid behavior. Even though @ljharb Please let me know if I'm missing something here. |
@gaara4896 | @ljharb Refer to this part of the test file for more details. |
I think the case you are referring is different. It is pretty common in React to directly export a component (what is happening in the tests), but here |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
eslint --fix . --ext .ts,.tsx,.js,.jsx
What did you expect to happen?
For the Ant Design,
render
inColumnsType
is not aReact component
but function, hence the rule should not be applied in this scenario. No error should show up.What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: