diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index dbcb38fb..9d542702 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -48,6 +48,10 @@ jobs: yarn lint-git # Always run this step so that all linting errors can be seen at once. if: always() + - name: Prettier + run: yarn prettier-check + # Always run this step so that all linting errors can be seen at once. + if: always() - name: ESLint # Disallow warnings and always throw errors. run: yarn lint --max-warnings 0 diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index a7a8288e..ff0375d7 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -32,7 +32,6 @@ const buttonVariants = cva( } ) - export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { @@ -43,17 +42,12 @@ export interface ButtonProps const Button = React.forwardRef( ({ className, variant, size, asChild = false, type = 'button', ...props }, ref) => { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? Slot : 'button' return ( - + ) } ) -Button.displayName = "Button" +Button.displayName = 'Button' export { Button, buttonVariants } diff --git a/src/stories/Dialog/Dialog.stories.tsx b/src/stories/Dialog/Dialog.stories.tsx index 8e00dfef..73ed22f7 100644 --- a/src/stories/Dialog/Dialog.stories.tsx +++ b/src/stories/Dialog/Dialog.stories.tsx @@ -133,9 +133,9 @@ export const LongDialog: Story = { Sample Dialog - {Array.from({length: 100}).map((_v, i) => + {Array.from({ length: 100 }).map((_v, i) => (

Sample description text goes here.

- )} + ))}