Skip to content

Commit

Permalink
chore: remove biome lint rule noEmptyInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaxis committed Oct 3, 2023
1 parent 4505b80 commit 89c9afd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"rules": {
"recommended": true,
"suspicious": {
"noEmptyInterface": "off",
"noArrayIndexKey": "off"
},
"a11y": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,12 @@ function Input<T extends string | NumberInputType>({
)
}

export interface TextInputProps extends BaseInputProps<string> {}
export type TextInputProps = BaseInputProps<string>
export const TextInput: FC<TextInputProps> = props => (
<Input {...props} type="text" />
)

export interface NumberInputProps extends BaseInputProps<NumberInputType> {}
export type NumberInputProps = BaseInputProps<NumberInputType>
export const NumberInput: FC<NumberInputProps> = props => (
<Input {...props} type="number" />
)
Expand Down
21 changes: 10 additions & 11 deletions packages/core/src/Input/TimeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/core/types/styled-components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}
2 changes: 1 addition & 1 deletion packages/docs/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface ComponentDoc {
readonly props: Props
}

export interface Props extends StringIndexedObject<PropItem> {}
export type Props = StringIndexedObject<PropItem>

export interface PropItem {
readonly name: string
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/types/styled-components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion packages/ui-tests/types/styled-components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 89c9afd

Please sign in to comment.