I'm getting the Eslint error: 'age' is missing in props validation eslint (react/prop-types) when using extends for interface for React components using the below seemingly valid example:
interface SuperProps {
age: number;
}
interface TestProps extends SuperProps {
name: string;
}
const Test = ({ name, age }: TestProps) => {
return (
<p>
{name}: {age}
</p>
);
};
Is this a bug or a feature that I haven't fully grasped?
eslintchecks for prop types and it can be disabled in.eslintrcthis way:"react/prop-types": "off"'