fix(lint): add inline lint suppression for polymorphic ref type
Added biome-ignore and eslint-disable-next-line comments inline on the ref prop to properly suppress the any type warnings. Polymorphic component requires any for proper ref forwarding across dynamic component types. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
cbed8f34cc
commit
f451f169ad
1 changed files with 2 additions and 1 deletions
|
|
@ -43,9 +43,10 @@ export const Section = forwardRef<HTMLElement, SectionProps>(
|
|||
) => {
|
||||
const Component = as;
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Polymorphic component requires any for ref type
|
||||
return (
|
||||
<Component
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Polymorphic component requires any for ref type
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
ref={ref as any}
|
||||
className={cn(
|
||||
sectionVariants({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue