Skip to content

Commit c14fdfa

Browse files
committed
fix: lint
1 parent 88566aa commit c14fdfa

File tree

7 files changed

+2
-13
lines changed

7 files changed

+2
-13
lines changed

packages/react/src/components/combobox/use-combobox-context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { UseComboboxReturn } from './use-combobox'
44

55
export interface UseComboboxContext<T extends CollectionItem> extends UseComboboxReturn<T> {}
66

7-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
87
export const [ComboboxProvider, useComboboxContext] = createContext<UseComboboxContext<any>>({
98
name: 'ComboboxContext',
109
hookName: 'useComboboxContext',

packages/react/src/components/factory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function getRef(element: React.ReactElement) {
3030
let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get
3131
let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning
3232
if (mayWarn) {
33-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
3433
return (element as any).ref
3534
}
3635

@@ -41,7 +40,6 @@ function getRef(element: React.ReactElement) {
4140
return (element.props as { ref?: React.Ref<unknown> | undefined }).ref
4241
}
4342

44-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
4543
return (element.props as { ref?: React.Ref<unknown> | undefined }).ref || (element as any).ref
4644
}
4745

@@ -53,7 +51,7 @@ const withAsChild = (Component: React.ElementType) => {
5351
if (!asChild) {
5452
return createElement(Component, { ...restProps, ref }, children)
5553
}
56-
54+
5755
if (!isValidElement<Record<string, unknown>>(children)) {
5856
return null
5957
}

packages/react/src/utils/use-event.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useCallback, useRef } from 'react'
22

3-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
43
type AnyFunction = (...args: any[]) => any
54

65
type Options = {
@@ -19,7 +18,6 @@ export function useEvent<T extends AnyFunction>(callback: T | undefined, opts: O
1918
const callbackRef = useLatestRef(callback)
2019

2120
return useCallback(
22-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
2321
(...args: any[]) => {
2422
if (sync) return queueMicrotask(() => callbackRef.current?.(...args))
2523
return callbackRef.current?.(...args)

packages/solid/.storybook/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default <StorybookConfig>{
1919
reactDocgen: 'react-docgen-typescript',
2020
reactDocgenTypescriptOptions: {
2121
shouldExtractLiteralValuesFromEnum: true,
22-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
2322
propFilter: (prop: Record<string, any>) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
2423
},
2524
},

packages/solid/src/components/combobox/use-combobox-context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { UseComboboxReturn } from './use-combobox'
44

55
export interface UseComboboxContext<T extends CollectionItem> extends UseComboboxReturn<T> {}
66

7-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
87
export const [ComboboxProvider, useComboboxContext] = createContext<UseComboboxContext<any>>({
98
hookName: 'useComboboxContext',
109
providerName: '<ComboboxProvider />',

packages/solid/src/components/factory.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ type JsxElements = {
99
[E in ElementType]: ArkComponent<E>
1010
}
1111

12-
type ParentProps<T extends ElementType> = (
13-
userProps?: JSX.IntrinsicElements[T],
14-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
15-
) => JSX.HTMLAttributes<any>
12+
type ParentProps<T extends ElementType> = (userProps?: JSX.IntrinsicElements[T]) => JSX.HTMLAttributes<any>
1613

1714
export type PolymorphicProps<T extends ElementType> = {
1815
/**

packages/solid/src/components/select/use-select-context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { UseSelectReturn } from './use-select'
44

55
export interface UseSelectContext<T extends CollectionItem> extends UseSelectReturn<T> {}
66

7-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
87
export const [SelectProvider, useSelectContext] = createContext<UseSelectContext<any>>({
98
hookName: 'useSelectContext',
109
providerName: '<SelectProvider />',

0 commit comments

Comments
 (0)