Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixing loop #61

Merged
merged 1 commit into from
Nov 7, 2024
Merged

fix: fixing loop #61

merged 1 commit into from
Nov 7, 2024

Conversation

schoero
Copy link
Owner

@schoero schoero commented Nov 7, 2024

when lines wrap on two lines immediately but was the theoretically short enough to not wrap.

const Command = React.forwardRef<
    React.ElementRef<typeof CommandPrimitive>,
    React.ComponentPropsWithoutRef<typeof CommandPrimitive>
>(({ className, ...props }, ref) => (
    <CommandPrimitive
        className={cn(
            `flex size-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,
            className
        )}
        ref={ref}
        {...props}
    />
))

was wrapped to

const Command = React.forwardRef<
    React.ElementRef<typeof CommandPrimitive>,
    React.ComponentPropsWithoutRef<typeof CommandPrimitive>
>(({ className, ...props }, ref) => (
    <CommandPrimitive
        className={cn(
            `
                flex size-full flex-col overflow-hidden rounded-md bg-popover
                text-popover-foreground
            `,
            className
        )}
        ref={ref}
        {...props}
    />
))

fixes #57

@schoero schoero merged commit fb9060d into main Nov 7, 2024
20 checks passed
@schoero schoero deleted the fix/infinite-fixing-loop branch November 7, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] readable-tailwind/multiline weird autofix behavior
1 participant