Skip to content

Commit 04f6691

Browse files
chore: Update deps
1 parent 4cbed53 commit 04f6691

19 files changed

+1912
-5429
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 23 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { prettier } from '@axa-ch/easy-config';
2+
3+
export default prettier.base;

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ const HeadingInner = <T extends HeadingAllowedElements>(
201201
export const Heading = forwardRef<HeadingAllowedElements>(HeadingInner) as unknown as <
202202
T extends HeadingAllowedElements,
203203
>(
204-
// eslint-disable-next-line no-use-before-define
205204
props: HeadingProps<T> & { ref?: PolymorphicForwardedRef<T> },
206205
) => ReturnType<typeof HeadingInner>;
207206
```
@@ -388,7 +387,6 @@ const ContainerInner = <T extends ContainerAllowedElements>(
388387
// Forward refs with generics is tricky
389388
// see also https://fettblog.eu/typescript-react-generic-forward-refs/
390389
export const Container = forwardRef<ContainerAllowedElements>(ContainerInner) as <T extends ContainerAllowedElements>(
391-
// eslint-disable-next-line no-use-before-define
392390
props: ContainerProps<T> & { ref?: PolymorphicForwardedRef<T> },
393391
) => ReturnType<typeof ContainerInner>;
394392
```
@@ -429,7 +427,6 @@ This example combines multiple rendering strategies for your component to allow
429427
```tsx
430428
// We need to infer the functional component properties so 'any' is used in this case
431429
// You can also add strict types for your functional components, but it will reduce flexibility
432-
/* eslint-disable @typescript-eslint/no-explicit-any */
433430
import { ComponentPropsWithoutRef, createElement, ElementType, ExoticComponent, FC } from 'react';
434431
import { PolymorphicFunctionalProps, PolymorphicExoticProps, PolymorphicProps } from '@axa-ch/react-polymorphic-types';
435432

biome.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"extends": ["./node_modules/@axa-ch/easy-config/biome/base.json"]
4+
}

index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {
1+
import type {
2+
Attributes,
3+
ComponentPropsWithRef,
24
ComponentPropsWithoutRef,
35
ElementType,
4-
PropsWithoutRef,
5-
JSX,
66
ExoticComponent,
7-
ComponentPropsWithRef,
87
FC,
9-
Attributes,
8+
JSX,
9+
PropsWithoutRef,
1010
} from 'react';
1111

1212
// Utility type to merge two types

0 commit comments

Comments
 (0)