Skip to content

Commit 8945d3c

Browse files
committed
chore: update linter
1 parent dcce337 commit 8945d3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+860
-860
lines changed

.prettierrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { StorybookConfig } from '@storybook/react-vite'
1+
import type { StorybookConfig } from '@storybook/react-vite';
22

33
const config: StorybookConfig = {
44
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
@@ -12,5 +12,5 @@ const config: StorybookConfig = {
1212
name: '@storybook/react-vite',
1313
options: {},
1414
},
15-
}
16-
export default config
15+
};
16+
export default config;

.storybook/preview.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Preview } from '@storybook/react-vite'
2-
import '../src/index.css'
1+
import type { Preview } from '@storybook/react-vite';
2+
import '../src/index.css';
33

44
const preview: Preview = {
55
parameters: {
@@ -17,6 +17,6 @@ const preview: Preview = {
1717
test: 'todo',
1818
},
1919
},
20-
}
20+
};
2121

22-
export default preview
22+
export default preview;

.storybook/vitest.setup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview'
2-
import { setProjectAnnotations } from '@storybook/react-vite'
3-
import * as projectAnnotations from './preview'
1+
import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';
2+
import { setProjectAnnotations } from '@storybook/react-vite';
3+
import * as projectAnnotations from './preview';
44

55
// This is an important step to apply the right configuration when testing your stories.
66
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7-
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations])
7+
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"jsxQuoteStyle": "double",
134134
"quoteProperties": "asNeeded",
135135
"trailingCommas": "all",
136-
"semicolons": "asNeeded",
136+
"semicolons": "always",
137137
"arrowParentheses": "always",
138138
"bracketSameLine": false,
139139
"quoteStyle": "single",

commitlint.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { UserConfig } from '@commitlint/types'
2-
import { RuleConfigSeverity } from '@commitlint/types'
1+
import type { UserConfig } from '@commitlint/types';
2+
import { RuleConfigSeverity } from '@commitlint/types';
33

44
const Configuration: UserConfig = {
55
rules: {
@@ -22,6 +22,6 @@ const Configuration: UserConfig = {
2222
},
2323
},
2424
},
25-
}
25+
};
2626

27-
module.exports = Configuration
27+
module.exports = Configuration;

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Button from './components/ui/Button/Button'
1+
import Button from './components/ui/Button/Button';
22

33
function App() {
44
return (
55
<div>
66
<h1>Hello World</h1>
77
<Button>Click me</Button>
88
</div>
9-
)
9+
);
1010
}
1111

12-
export default App
12+
export default App;

src/components/primitives/accordion.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import * as AccordionPrimitive from '@radix-ui/react-accordion'
2-
import { ChevronDownIcon } from 'lucide-react'
3-
import type * as React from 'react'
1+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
2+
import { ChevronDownIcon } from 'lucide-react';
3+
import type * as React from 'react';
44

5-
import { cn } from '@/lib/utils'
5+
import { cn } from '@/lib/utils';
66

77
function Accordion({
88
...props
99
}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
10-
return <AccordionPrimitive.Root data-slot="accordion" {...props} />
10+
return <AccordionPrimitive.Root data-slot="accordion" {...props} />;
1111
}
1212

1313
function AccordionItem({
@@ -20,7 +20,7 @@ function AccordionItem({
2020
className={cn('border-b last:border-b-0', className)}
2121
{...props}
2222
/>
23-
)
23+
);
2424
}
2525

2626
function AccordionTrigger({
@@ -42,7 +42,7 @@ function AccordionTrigger({
4242
<ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />
4343
</AccordionPrimitive.Trigger>
4444
</AccordionPrimitive.Header>
45-
)
45+
);
4646
}
4747

4848
function AccordionContent({
@@ -58,7 +58,7 @@ function AccordionContent({
5858
>
5959
<div className={cn('pt-0 pb-4', className)}>{children}</div>
6060
</AccordionPrimitive.Content>
61-
)
61+
);
6262
}
6363

64-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
64+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };

src/components/primitives/alert-dialog.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'
2-
import type * as React from 'react'
3-
import { buttonVariants } from '@/components/primitives/button'
4-
import { cn } from '@/lib/utils'
1+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
2+
import type * as React from 'react';
3+
import { buttonVariants } from '@/components/primitives/button';
4+
import { cn } from '@/lib/utils';
55

66
function AlertDialog({
77
...props
88
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
9-
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
9+
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
1010
}
1111

1212
function AlertDialogTrigger({
1313
...props
1414
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
1515
return (
1616
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
17-
)
17+
);
1818
}
1919

2020
function AlertDialogPortal({
2121
...props
2222
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
2323
return (
2424
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
25-
)
25+
);
2626
}
2727

2828
function AlertDialogOverlay({
@@ -38,7 +38,7 @@ function AlertDialogOverlay({
3838
)}
3939
{...props}
4040
/>
41-
)
41+
);
4242
}
4343

4444
function AlertDialogContent({
@@ -57,7 +57,7 @@ function AlertDialogContent({
5757
{...props}
5858
/>
5959
</AlertDialogPortal>
60-
)
60+
);
6161
}
6262

6363
function AlertDialogHeader({
@@ -70,7 +70,7 @@ function AlertDialogHeader({
7070
className={cn('flex flex-col gap-2 text-center sm:text-left', className)}
7171
{...props}
7272
/>
73-
)
73+
);
7474
}
7575

7676
function AlertDialogFooter({
@@ -86,7 +86,7 @@ function AlertDialogFooter({
8686
)}
8787
{...props}
8888
/>
89-
)
89+
);
9090
}
9191

9292
function AlertDialogTitle({
@@ -99,7 +99,7 @@ function AlertDialogTitle({
9999
className={cn('text-lg font-semibold', className)}
100100
{...props}
101101
/>
102-
)
102+
);
103103
}
104104

105105
function AlertDialogDescription({
@@ -112,7 +112,7 @@ function AlertDialogDescription({
112112
className={cn('text-muted-foreground text-sm', className)}
113113
{...props}
114114
/>
115-
)
115+
);
116116
}
117117

118118
function AlertDialogAction({
@@ -124,7 +124,7 @@ function AlertDialogAction({
124124
className={cn(buttonVariants(), className)}
125125
{...props}
126126
/>
127-
)
127+
);
128128
}
129129

130130
function AlertDialogCancel({
@@ -136,7 +136,7 @@ function AlertDialogCancel({
136136
className={cn(buttonVariants({ variant: 'outline' }), className)}
137137
{...props}
138138
/>
139-
)
139+
);
140140
}
141141

142142
export {
@@ -151,4 +151,4 @@ export {
151151
AlertDialogDescription,
152152
AlertDialogAction,
153153
AlertDialogCancel,
154-
}
154+
};

src/components/primitives/alert.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { cva, type VariantProps } from 'class-variance-authority'
2-
import type * as React from 'react'
1+
import { cva, type VariantProps } from 'class-variance-authority';
2+
import type * as React from 'react';
33

4-
import { cn } from '@/lib/utils'
4+
import { cn } from '@/lib/utils';
55

66
const alertVariants = cva(
77
'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
@@ -17,7 +17,7 @@ const alertVariants = cva(
1717
variant: 'default',
1818
},
1919
},
20-
)
20+
);
2121

2222
function Alert({
2323
className,
@@ -31,7 +31,7 @@ function Alert({
3131
className={cn(alertVariants({ variant }), className)}
3232
{...props}
3333
/>
34-
)
34+
);
3535
}
3636

3737
function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {
@@ -44,7 +44,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {
4444
)}
4545
{...props}
4646
/>
47-
)
47+
);
4848
}
4949

5050
function AlertDescription({
@@ -60,7 +60,7 @@ function AlertDescription({
6060
)}
6161
{...props}
6262
/>
63-
)
63+
);
6464
}
6565

66-
export { Alert, AlertTitle, AlertDescription }
66+
export { Alert, AlertTitle, AlertDescription };

0 commit comments

Comments
 (0)