Skip to content

Commit 38dfb25

Browse files
committed
refactor: ran lint --fix
Signed-off-by: rajput-hemant <rajput.hemant2001@gmail.com>
1 parent 0b7cb99 commit 38dfb25

File tree

5 files changed

+41
-41
lines changed

5 files changed

+41
-41
lines changed

bun.lockb

359 KB
Binary file not shown.

package.json

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,43 @@
1717
"start": "vite --open --mode ssr",
1818
"type-check": "tsc --incremental --noEmit",
1919
"qwik": "qwik",
20+
"clean": "rm -rf dist",
21+
"cleani": "rm -rf dist && rm -rf node_modules && bun i",
2022
"prepare": "husky"
2123
},
2224
"dependencies": {
2325
"@qwikest/icons": "^0.0.13",
24-
"clsx": "^2.0.0",
25-
"tailwind-merge": "^2.0.0"
26+
"clsx": "^2.1.0",
27+
"tailwind-merge": "^2.3.0"
2628
},
2729
"devDependencies": {
28-
"@builder.io/qwik": "^1.2.17",
29-
"@builder.io/qwik-city": "^1.2.17",
30-
"@commitlint/cli": "^18.2.0",
31-
"@commitlint/config-conventional": "^18.1.0",
32-
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
33-
"@netlify/edge-functions": "^2.0.0",
34-
"@types/eslint": "^8.44.4",
35-
"@types/node": "^20.8.4",
36-
"@typescript-eslint/eslint-plugin": "^6.7.5",
37-
"@typescript-eslint/parser": "^6.7.5",
38-
"autoprefixer": "^10.4.14",
39-
"eslint": "^8.51.0",
40-
"eslint-config-prettier": "^9.0.0",
41-
"eslint-plugin-qwik": "^1.2.17",
42-
"eslint-plugin-tailwindcss": "^3.13.0",
43-
"husky": "^8.0.0",
44-
"lint-staged": "^15.0.2",
45-
"netlify-cli": "^15.0.0",
46-
"postcss": "^8.4.31",
47-
"prettier": "^3.0.3",
48-
"prettier-plugin-tailwindcss": "^0.5.4",
49-
"tailwindcss": "3.3.3",
50-
"typescript": "^5.2.2",
51-
"undici": "^5.26.0",
52-
"vercel": "^29.1.1",
53-
"vite": "^4.4.11",
54-
"vite-tsconfig-paths": "^4.2.1"
30+
"@builder.io/qwik": "^1.5.2",
31+
"@builder.io/qwik-city": "^1.5.2",
32+
"@commitlint/cli": "^18.6.1",
33+
"@commitlint/config-conventional": "^18.6.3",
34+
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
35+
"@netlify/edge-functions": "^2.5.1",
36+
"@types/eslint": "^8.56.10",
37+
"@types/node": "^20.12.7",
38+
"@typescript-eslint/eslint-plugin": "^6.21.0",
39+
"@typescript-eslint/parser": "^6.21.0",
40+
"autoprefixer": "^10.4.19",
41+
"eslint": "^8.57.0",
42+
"eslint-config-prettier": "^9.1.0",
43+
"eslint-plugin-qwik": "^1.5.2",
44+
"eslint-plugin-tailwindcss": "^3.15.1",
45+
"husky": "^8.0.3",
46+
"lint-staged": "^15.2.2",
47+
"netlify-cli": "^15.11.0",
48+
"postcss": "^8.4.38",
49+
"prettier": "^3.2.5",
50+
"prettier-plugin-tailwindcss": "^0.5.14",
51+
"tailwindcss": "3.4.3",
52+
"typescript": "^5.4.5",
53+
"undici": "^5.28.4",
54+
"vercel": "^29.4.0",
55+
"vite": "^4.5.3",
56+
"vite-tsconfig-paths": "^4.3.2"
5557
},
5658
"trustedDependencies": [
5759
"sharp"
@@ -68,6 +70,6 @@
6870
]
6971
},
7072
"engines": {
71-
"node": ">=15.0.0"
73+
"node": ">=15.14.0"
7274
}
7375
}

src/components/theme/theme-switcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export const ThemeSwitcher = component$<ThemeSwitcherProps>((props) => {
2020
<button onClick$={toggleTheme} {...props}>
2121
<LuSun
2222
aria-hidden="true"
23-
class="h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
23+
class="size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
2424
/>
2525
<LuMoon
2626
aria-hidden="true"
27-
class="absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
27+
class="absolute size-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
2828
/>
2929
</button>
3030
);

src/hooks/use-theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable qwik/no-use-visible-task */
12
import { useContext, useSignal, useVisibleTask$ } from "@builder.io/qwik";
23

34
import type { Theme } from "~/components/theme";

src/routes/index.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,9 @@ export default component$(() => {
8787
});
8888

8989
return (
90-
<main class="layout grid min-h-screen w-full place-items-center bg-[#141414] bg-fixed text-white selection:bg-zinc-300 selection:text-black">
90+
<main class="layout grid min-h-screen w-full place-items-center bg-black bg-fixed text-white selection:bg-zinc-300 selection:text-black">
9191
<section class="px-4">
92-
<QwikLogo
93-
alt="Next.js logo"
94-
class="w-2h-28 mx-auto mb-6 h-28 md:max-w-full"
95-
/>
92+
<QwikLogo class="w-2h-28 mx-auto mb-6 h-28 md:max-w-full" />
9693

9794
<div class="grid items-center gap-6">
9895
<div class="flex flex-col justify-center space-y-4 text-center">
@@ -121,9 +118,9 @@ export default component$(() => {
121118
class="text-zinc-400 transition-colors hover:text-white"
122119
>
123120
{isCopied.value ? (
124-
<LuClipboardCheck class="h-5 w-5" />
121+
<LuClipboardCheck class="size-5" />
125122
) : (
126-
<LuClipboard class="h-5 w-5" />
123+
<LuClipboard class="size-5" />
127124
)}
128125
</button>
129126
</p>
@@ -157,7 +154,7 @@ export default component$(() => {
157154
rel="noopener noreferrer"
158155
class="flex rounded-full border border-zinc-700 px-6 py-3 duration-300 hover:bg-white/10 hover:shadow-md hover:shadow-black"
159156
>
160-
<LuFlameKindling class="mr-2 h-5 w-5" />
157+
<LuFlameKindling class="mr-2 size-5" />
161158
Use Template
162159
</a>
163160

@@ -167,7 +164,7 @@ export default component$(() => {
167164
rel="noopener noreferrer"
168165
class="flex rounded-full border border-zinc-700 px-6 py-3 duration-300 hover:bg-white/10 hover:shadow-md hover:shadow-black"
169166
>
170-
<LuGithub class="mr-2 h-5 w-5 " />
167+
<LuGithub class="mr-2 size-5 " />
171168
View Repo
172169
</a>
173170
</div>

0 commit comments

Comments
 (0)