diff --git a/biome.json b/biome.json index 8a30b1c8..ef778043 100644 --- a/biome.json +++ b/biome.json @@ -8,7 +8,6 @@ "rules": { "recommended": true, "suspicious": { - "noEmptyInterface": "off", "noArrayIndexKey": "off" }, "a11y": { diff --git a/packages/core/src/Input/Input.tsx b/packages/core/src/Input/Input.tsx index d45fbc9f..9f6595ae 100644 --- a/packages/core/src/Input/Input.tsx +++ b/packages/core/src/Input/Input.tsx @@ -462,12 +462,12 @@ function Input({ ) } -export interface TextInputProps extends BaseInputProps {} +export type TextInputProps = BaseInputProps export const TextInput: FC = props => ( ) -export interface NumberInputProps extends BaseInputProps {} +export type NumberInputProps = BaseInputProps export const NumberInput: FC = props => ( ) diff --git a/packages/core/src/Input/TimeInput.tsx b/packages/core/src/Input/TimeInput.tsx index cbde1498..423a05a1 100644 --- a/packages/core/src/Input/TimeInput.tsx +++ b/packages/core/src/Input/TimeInput.tsx @@ -217,17 +217,16 @@ const getKeyCodeValue = (key: string) => { } } -export interface BaseTimeInputProps - extends Omit< - TextInputProps, - | 'value' - | 'onValueChange' - | 'onChange' - | 'ref' - | 'width' - | 'maxLength' - | 'placeholder' - > {} +export type BaseTimeInputProps = Omit< + TextInputProps, + | 'value' + | 'onValueChange' + | 'onChange' + | 'ref' + | 'width' + | 'maxLength' + | 'placeholder' +> export interface TimeInputValues { readonly hour?: number diff --git a/packages/core/types/styled-components.d.ts b/packages/core/types/styled-components.d.ts index 3d369ad1..be0de4ac 100644 --- a/packages/core/types/styled-components.d.ts +++ b/packages/core/types/styled-components.d.ts @@ -4,5 +4,6 @@ import { Theme } from '../src/theme' // and extend them! declare module 'styled-components' { + // biome-ignore lint/suspicious/noEmptyInterface: used to import from styled-components export interface DefaultTheme extends Theme {} } diff --git a/packages/docs/src/types.ts b/packages/docs/src/types.ts index 46a0b7b7..b25e16a0 100644 --- a/packages/docs/src/types.ts +++ b/packages/docs/src/types.ts @@ -23,7 +23,7 @@ export interface ComponentDoc { readonly props: Props } -export interface Props extends StringIndexedObject {} +export type Props = StringIndexedObject export interface PropItem { readonly name: string diff --git a/packages/docs/types/styled-components.d.ts b/packages/docs/types/styled-components.d.ts index 3aac1717..acf75987 100644 --- a/packages/docs/types/styled-components.d.ts +++ b/packages/docs/types/styled-components.d.ts @@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core' // and extend them! declare module 'styled-components' { - export interface DefaultTheme extends Theme {} + export type DefaultTheme = Theme } diff --git a/packages/ui-tests/types/styled-components.d.ts b/packages/ui-tests/types/styled-components.d.ts index 3aac1717..acf75987 100644 --- a/packages/ui-tests/types/styled-components.d.ts +++ b/packages/ui-tests/types/styled-components.d.ts @@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core' // and extend them! declare module 'styled-components' { - export interface DefaultTheme extends Theme {} + export type DefaultTheme = Theme }