Is there a rule where in I can disable usage of React.StatelessComponent or React.FunctionalComponent to use only React.FC
For example:
export const ComponentOne: React.StatelessComponent<Props> = (props) => { return <....> };
export const ComponentTwo: React.FunctionalComponent<Props> = (props) => { return <....> };
Should be enforced by ESLint to be written as
export const ComponentOne: React.FC<Props> = (props) => { return <....> };
export const ComponentTwo: React.FC<Props> = (props) => { return <....> };
I think it's possible via no-restricted-syntax rule but can't figure out from the documentation.