Skip to content

Commit 62d4c63

Browse files
committed
chore: remove prettier plugin astro from command and only add in plugins
1 parent 3c869bc commit 62d4c63

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

.prettierrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/** @type {import("prettier").Config} */
22
const config = {
3-
// we still need to add the `prettier-plugin-astro` in the script, due to upstream pnpm issue as mentioned on astro docs
4-
// Reference: https://docs.astro.build/en/editor-setup/#prettier
5-
63
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-astro', 'prettier-plugin-tailwindcss'],
74

85
// General

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"dev:hooks": "turbo dev --filter=@abhushanaj/react-hooks",
1616
"build:hooks": "turbo build --filter=@abhushanaj/react-hooks",
1717
"test:hooks": "turbo test --filter=@abhushanaj/react-hooks",
18-
"prettier:format": "pnpm exec prettier . --write --plugin=prettier-plugin-astro",
19-
"prettier:check": "pnpm exec prettier . --check --plugin=prettier-plugin-astro",
18+
"prettier:format": "pnpm exec prettier . --write",
19+
"prettier:check": "pnpm exec prettier . --check",
2020
"prepare": "husky"
2121
},
2222
"devDependencies": {

www/src/components/demo/useIsClient/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ClientGate from '@/components/docs/client-gate';
33
function Box({ isClientOnly }: { isClientOnly: boolean }) {
44
return (
55
<div
6-
className={`flex size-20 items-center justify-center rounded-md border-2 border-white text-white ${isClientOnly ? 'bg-green-500' : 'bg-pink-500'}`}
6+
className={`flex size-20 items-center justify-center rounded-md border-2 border-white text-white ${isClientOnly ? 'bg-green-500' : 'bg-pink-500'}`}
77
/>
88
);
99
}

www/src/components/demo/useList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function UseListExample() {
2525
<div className="my-4 flex min-h-16 max-w-[80%] items-center justify-center gap-4 overflow-x-auto pb-4">
2626
{list.map((i, ind) => (
2727
<div
28-
className={`flex min-h-[50px] min-w-[50px] items-center justify-center rounded-md border-2 border-white p-3 ${ind === size - 1 ? 'bg-yellow-500' : ''} ${ind === 0 ? 'bg-green-500' : ''}`}
28+
className={`flex min-h-[50px] min-w-[50px] items-center justify-center rounded-md border-2 border-white p-3 ${ind === size - 1 ? 'bg-yellow-500' : ''} ${ind === 0 ? 'bg-green-500' : ''}`}
2929
key={ind}
3030
>
3131
{i}

www/src/components/demo/useQueue/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function UseQueueExample() {
3232
<div className="my-4 flex min-h-16 max-w-[80%] items-center justify-center gap-4 overflow-x-auto pb-4">
3333
{queue.map((i) => (
3434
<div
35-
className={`flex min-h-[50px] min-w-[50px] items-center justify-center rounded-md border-2 border-white p-3 ${i === lastItem ? 'bg-yellow-500' : ''} ${i === firstItem ? 'bg-green-500' : ''} ${firstItem === lastItem ? 'bg-pink-500' : ''}`}
35+
className={`flex min-h-[50px] min-w-[50px] items-center justify-center rounded-md border-2 border-white p-3 ${i === lastItem ? 'bg-yellow-500' : ''} ${i === firstItem ? 'bg-green-500' : ''} ${firstItem === lastItem ? 'bg-pink-500' : ''}`}
3636
key={i}
3737
>
3838
{i}

www/src/components/demo/useWasSSR/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Box() {
66
const wasSSRed = useWasSSR();
77
return (
88
<div
9-
className={`flex size-20 items-center justify-center rounded-md border-2 border-white text-white ${wasSSRed ? 'bg-green-500' : 'bg-red-500'}`}
9+
className={`flex size-20 items-center justify-center rounded-md border-2 border-white text-white ${wasSSRed ? 'bg-green-500' : 'bg-red-500'}`}
1010
/>
1111
);
1212
}

www/src/components/demo/wrapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77

88
export function DemoWrapper({ children, title }: Props) {
99
return (
10-
<div className="bg-gradient-1 not-content flex min-h-[450px] w-full flex-col items-center rounded-md p-[2em] text-center text-white">
10+
<div className="bg-gradient-1 not-content flex min-h-[450px] w-full flex-col items-center rounded-md p-[2em] text-center text-white">
1111
<h2 className="min-h-[40px] text-center text-3xl text-white">{title}</h2>
1212
<div className="flex w-full flex-1 items-center justify-center">{children}</div>
1313
</div>

0 commit comments

Comments
 (0)