Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 89c9afd

Browse files
committed
chore: remove biome lint rule noEmptyInterface
1 parent 4505b80 commit 89c9afd

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"rules": {
99
"recommended": true,
1010
"suspicious": {
11-
"noEmptyInterface": "off",
1211
"noArrayIndexKey": "off"
1312
},
1413
"a11y": {

packages/core/src/Input/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,12 @@ function Input<T extends string | NumberInputType>({
462462
)
463463
}
464464

465-
export interface TextInputProps extends BaseInputProps<string> {}
465+
export type TextInputProps = BaseInputProps<string>
466466
export const TextInput: FC<TextInputProps> = props => (
467467
<Input {...props} type="text" />
468468
)
469469

470-
export interface NumberInputProps extends BaseInputProps<NumberInputType> {}
470+
export type NumberInputProps = BaseInputProps<NumberInputType>
471471
export const NumberInput: FC<NumberInputProps> = props => (
472472
<Input {...props} type="number" />
473473
)

packages/core/src/Input/TimeInput.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,16 @@ const getKeyCodeValue = (key: string) => {
217217
}
218218
}
219219

220-
export interface BaseTimeInputProps
221-
extends Omit<
222-
TextInputProps,
223-
| 'value'
224-
| 'onValueChange'
225-
| 'onChange'
226-
| 'ref'
227-
| 'width'
228-
| 'maxLength'
229-
| 'placeholder'
230-
> {}
220+
export type BaseTimeInputProps = Omit<
221+
TextInputProps,
222+
| 'value'
223+
| 'onValueChange'
224+
| 'onChange'
225+
| 'ref'
226+
| 'width'
227+
| 'maxLength'
228+
| 'placeholder'
229+
>
231230

232231
export interface TimeInputValues {
233232
readonly hour?: number

packages/core/types/styled-components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Theme } from '../src/theme'
44

55
// and extend them!
66
declare module 'styled-components' {
7+
// biome-ignore lint/suspicious/noEmptyInterface: used to import from styled-components
78
export interface DefaultTheme extends Theme {}
89
}

packages/docs/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface ComponentDoc {
2323
readonly props: Props
2424
}
2525

26-
export interface Props extends StringIndexedObject<PropItem> {}
26+
export type Props = StringIndexedObject<PropItem>
2727

2828
export interface PropItem {
2929
readonly name: string

packages/docs/types/styled-components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core'
44

55
// and extend them!
66
declare module 'styled-components' {
7-
export interface DefaultTheme extends Theme {}
7+
export type DefaultTheme = Theme
88
}

packages/ui-tests/types/styled-components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core'
44

55
// and extend them!
66
declare module 'styled-components' {
7-
export interface DefaultTheme extends Theme {}
7+
export type DefaultTheme = Theme
88
}

0 commit comments

Comments
 (0)