Skip to content

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

Closed

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions