Skip to content

Commit cc094a6

Browse files
committed
Enable prettier check in CI
1 parent 9c7702d commit cc094a6

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/ci-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
yarn lint-git
4949
# Always run this step so that all linting errors can be seen at once.
5050
if: always()
51+
- name: Prettier
52+
run: yarn prettier-check
53+
# Always run this step so that all linting errors can be seen at once.
54+
if: always()
5155
- name: ESLint
5256
# Disallow warnings and always throw errors.
5357
run: yarn lint --max-warnings 0

src/components/ui/button.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const buttonVariants = cva(
3232
}
3333
)
3434

35-
3635
export interface ButtonProps
3736
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
3837
VariantProps<typeof buttonVariants> {
@@ -43,17 +42,12 @@ export interface ButtonProps
4342

4443
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4544
({ className, variant, size, asChild = false, type = 'button', ...props }, ref) => {
46-
const Comp = asChild ? Slot : "button"
45+
const Comp = asChild ? Slot : 'button'
4746
return (
48-
<Comp
49-
className={cn(buttonVariants({ variant, size, className }))}
50-
type={type}
51-
ref={ref}
52-
{...props}
53-
/>
47+
<Comp className={cn(buttonVariants({ variant, size, className }))} type={type} ref={ref} {...props} />
5448
)
5549
}
5650
)
57-
Button.displayName = "Button"
51+
Button.displayName = 'Button'
5852

5953
export { Button, buttonVariants }

src/stories/Dialog/Dialog.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ export const LongDialog: Story = {
133133
<DialogHeader>
134134
<DialogTitle>Sample Dialog</DialogTitle>
135135
<DialogDescription>
136-
{Array.from({length: 100}).map((_v, i) =>
136+
{Array.from({ length: 100 }).map((_v, i) => (
137137
<p key={i}>Sample description text goes here.</p>
138-
)}
138+
))}
139139
</DialogDescription>
140140
</DialogHeader>
141141
<DialogFooter>

0 commit comments

Comments
 (0)