Skip to content

Commit ac24745

Browse files
authored
Merge pull request #29 from LuanRoger/ci/check
ci: create check workflow and fix some Biome issues
2 parents 4d7c24e + b69b814 commit ac24745

23 files changed

Lines changed: 110 additions & 70 deletions

File tree

.github/workflows/check.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: 24
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Run check
19+
run: npm run check

apps/app/vitest.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export default defineConfig({
99
},
1010
resolve: {
1111
alias: {
12-
"@": path.resolve(__dirname, "./"),
13-
"@repo": path.resolve(__dirname, "../../packages"),
12+
"@": path.resolve(import.meta.dirname, "./"),
13+
"@repo": path.resolve(import.meta.dirname, "../../packages"),
1414
},
1515
},
1616
});

apps/docs/app/docs/[[...slug]]/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import { getMDXComponents } from "@/mdx-components";
1313
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
1414
const params = await props.params;
1515
const page = source.getPage(params.slug);
16-
if (!page) notFound();
16+
if (!page) {
17+
notFound();
18+
}
1719

1820
const MDX = page.data.body;
1921

@@ -42,7 +44,9 @@ export async function generateMetadata(
4244
): Promise<Metadata> {
4345
const params = await props.params;
4446
const page = source.getPage(params.slug);
45-
if (!page) notFound();
47+
if (!page) {
48+
notFound();
49+
}
4650

4751
return {
4852
title: page.data.title,

apps/docs/app/og/docs/[...slug]/route.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export async function GET(
1111
) {
1212
const { slug } = await params;
1313
const page = source.getPage(slug.slice(0, -1));
14-
if (!page) notFound();
14+
if (!page) {
15+
notFound();
16+
}
1517

1618
return new ImageResponse(
1719
<DefaultImage

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"postinstall": "fumadocs-mdx"
1111
},
1212
"dependencies": {
13+
"@repo/design-system": "workspace:*",
1314
"fumadocs-core": "^16.5.0",
1415
"fumadocs-mdx": "^14.2.6",
1516
"fumadocs-ui": "^16.5.0",

apps/docs/postcss.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
export default {
2-
plugins: {
3-
"@tailwindcss/postcss": {},
4-
},
5-
};
1+
export { default } from "@repo/design-system/postcss.config.mjs";
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!-- https://github.com/vercel/geist-font/issues/72 -->
22

3-
<link rel="preconnect" href="https://fonts.googleapis.com" />
4-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3+
<link rel="preconnect" href="https://fonts.googleapis.com">
4+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
55
<link
66
href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap"
77
rel="stylesheet"
8-
/>
8+
>
99

1010
<style>
11-
:root {
12-
--font-geist-sans: "Geist", sans-serif;
13-
--font-geist-mono: "Geist Mono", monospace;
14-
}
15-
body {
16-
-webkit-font-smoothing: antialiased;
17-
-moz-osx-font-smoothing: grayscale;
18-
touch-action: manipulation;
19-
}
11+
:root {
12+
--font-geist-sans: "Geist", sans-serif;
13+
--font-geist-mono: "Geist Mono", monospace;
14+
}
15+
body {
16+
-webkit-font-smoothing: antialiased;
17+
-moz-osx-font-smoothing: grayscale;
18+
touch-action: manipulation;
19+
}
2020
</style>

apps/storybook/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
1111
},
1212
"dependencies": {
13-
"@repo/design-system": "workspace:*",
1413
"@hookform/resolvers": "^5.2.2",
14+
"@repo/design-system": "workspace:*",
1515
"cmdk": "^1.1.1",
1616
"date-fns": "^4.1.0",
1717
"input-otp": "^1.4.2",
@@ -25,12 +25,13 @@
2525
"zod": "^4.3.6"
2626
},
2727
"devDependencies": {
28-
"@repo/typescript-config": "workspace:*",
2928
"@chromatic-com/storybook": "^5.0.0",
29+
"@repo/typescript-config": "workspace:*",
3030
"@storybook/addon-onboarding": "^10.2.7",
3131
"@storybook/addon-themes": "^10.2.7",
3232
"@storybook/nextjs": "^10.2.7",
3333
"@storybook/react": "^10.2.7",
34+
"@tailwindcss/postcss": "^4.1.18",
3435
"@types/node": "^25",
3536
"@types/react": "19.2.13",
3637
"@types/react-dom": "19.2.3",

apps/storybook/postcss.config.mjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
/** @type {import('postcss-load-config').Config} */
2-
const config = {
3-
plugins: {
4-
tailwindcss: {},
5-
},
6-
};
7-
8-
export default config;
1+
export { default } from "@repo/design-system/postcss.config.mjs";

apps/storybook/stories/card.stories.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ const meta = {
4242
<CardDescription>You have 3 unread messages.</CardDescription>
4343
</CardHeader>
4444
<CardContent className="grid gap-4">
45-
{notifications.map((notification, index) => (
46-
<div className="flex items-center gap-4" key={index}>
45+
{notifications.map((notification) => (
46+
<div
47+
className="flex items-center gap-4"
48+
key={`notification-${notification.title}`}
49+
>
4750
<BellRing className="size-6" />
4851
<div>
4952
<p>{notification.title}</p>

0 commit comments

Comments
 (0)