@@ -201,7 +201,6 @@ const HeadingInner = <T extends HeadingAllowedElements>(
201
201
export const Heading = forwardRef <HeadingAllowedElements >(HeadingInner ) as unknown as <
202
202
T extends HeadingAllowedElements ,
203
203
>(
204
- // eslint-disable-next-line no-use-before-define
205
204
props : HeadingProps <T > & { ref? : PolymorphicForwardedRef <T > },
206
205
) => ReturnType <typeof HeadingInner >;
207
206
```
@@ -388,7 +387,6 @@ const ContainerInner = <T extends ContainerAllowedElements>(
388
387
// Forward refs with generics is tricky
389
388
// see also https://fettblog.eu/typescript-react-generic-forward-refs/
390
389
export const Container = forwardRef <ContainerAllowedElements >(ContainerInner ) as <T extends ContainerAllowedElements >(
391
- // eslint-disable-next-line no-use-before-define
392
390
props : ContainerProps <T > & { ref? : PolymorphicForwardedRef <T > },
393
391
) => ReturnType <typeof ContainerInner >;
394
392
```
@@ -429,7 +427,6 @@ This example combines multiple rendering strategies for your component to allow
429
427
``` tsx
430
428
// We need to infer the functional component properties so 'any' is used in this case
431
429
// You can also add strict types for your functional components, but it will reduce flexibility
432
- /* eslint-disable @typescript-eslint/no-explicit-any */
433
430
import { ComponentPropsWithoutRef , createElement , ElementType , ExoticComponent , FC } from ' react' ;
434
431
import { PolymorphicFunctionalProps , PolymorphicExoticProps , PolymorphicProps } from ' @axa-ch/react-polymorphic-types' ;
435
432
0 commit comments