Skip to content
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

False positive for react/display-name on function value assignment to identifier starting with _ #3334

Closed
apbarrero opened this issue Jul 13, 2022 · 0 comments · Fixed by #3335

Comments

@apbarrero
Copy link
Contributor

Both this codes are wrongly identified as Components:

obj._property = (a) => {
  if (a == null) return null;
  return f(a);
};
_variable = (a) => {
  if (a == null) return null;
  return f(a);
};

Apparently because words starting with _ are claimed as starting with a capital letter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant