Is there an existing issue for this?
Description Overview
When naming function components with an underscore _ prefix, the react/prop-types rule does not report anything.
Other prefixes, like $ don't seem to create this problem.
function _EventsList({ eventDate }) {
return (
<div>
{eventDate.events.map((event) => (
<Event key={event.id} eventId={event.id} />
))}
</div>
);
}
Expected Behavior
I would expect the rule to appear regardless of the function name.
eslint-plugin-react version
v7.31.10
eslint version
v7.32.0
node version
v10.15.3
Is there an existing issue for this?
Description Overview
When naming function components with an underscore
_prefix, thereact/prop-typesrule does not report anything.Other prefixes, like
$don't seem to create this problem.Expected Behavior
I would expect the rule to appear regardless of the function name.
eslint-plugin-react version
v7.31.10
eslint version
v7.32.0
node version
v10.15.3