Skip to content

Commit 16e15f7

Browse files
committed
edit husky
1 parent 769f333 commit 16e15f7

File tree

4 files changed

+175
-148
lines changed

4 files changed

+175
-148
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"pre-commit": "npm run --workspaces pre-commit",
4-
"prepare": "husky prepare"
4+
"prepare": "husky"
55
},
66
"devDependencies": {
77
"husky": "^9.1.6"
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
"use client"
1+
'use client';
22

3-
import * as React from "react"
4-
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
3+
import * as React from 'react';
4+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
55

6-
import { cn } from "@/lib/utils"
6+
import { cn } from '@/lib/utils';
77

88
const ScrollArea = React.forwardRef<
99
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
1010
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
1111
>(({ className, children, ...props }, ref) => (
1212
<ScrollAreaPrimitive.Root
1313
ref={ref}
14-
className={cn("relative overflow-hidden", className)}
14+
className={cn('relative overflow-hidden', className)}
1515
{...props}
1616
>
1717
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
@@ -20,29 +20,29 @@ const ScrollArea = React.forwardRef<
2020
<ScrollBar />
2121
<ScrollAreaPrimitive.Corner />
2222
</ScrollAreaPrimitive.Root>
23-
))
24-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
23+
));
24+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2525

2626
const ScrollBar = React.forwardRef<
2727
React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
2828
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
29-
>(({ className, orientation = "vertical", ...props }, ref) => (
29+
>(({ className, orientation = 'vertical', ...props }, ref) => (
3030
<ScrollAreaPrimitive.ScrollAreaScrollbar
3131
ref={ref}
3232
orientation={orientation}
3333
className={cn(
34-
"flex touch-none select-none transition-colors",
35-
orientation === "vertical" &&
36-
"h-full w-2.5 border-l border-l-transparent p-[1px]",
37-
orientation === "horizontal" &&
38-
"h-2.5 flex-col border-t border-t-transparent p-[1px]",
39-
className
34+
'flex touch-none select-none transition-colors',
35+
orientation === 'vertical' &&
36+
'h-full w-2.5 border-l border-l-transparent p-[1px]',
37+
orientation === 'horizontal' &&
38+
'h-2.5 flex-col border-t border-t-transparent p-[1px]',
39+
className,
4040
)}
4141
{...props}
4242
>
4343
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
4444
</ScrollAreaPrimitive.ScrollAreaScrollbar>
45-
))
46-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
45+
));
46+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
4747

48-
export { ScrollArea, ScrollBar }
48+
export { ScrollArea, ScrollBar };
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { cn } from "@/lib/utils"
1+
import { cn } from '@/lib/utils';
22

33
function Skeleton({
44
className,
55
...props
66
}: React.HTMLAttributes<HTMLDivElement>) {
77
return (
88
<div
9-
className={cn("animate-pulse rounded-md bg-primary/10", className)}
9+
className={cn('animate-pulse rounded-md bg-primary/10', className)}
1010
{...props}
1111
/>
12-
)
12+
);
1313
}
1414

15-
export { Skeleton }
15+
export { Skeleton };

0 commit comments

Comments
 (0)