Skip to content

Commit 67e5663

Browse files
committed
Fixed Linting Issues in all components
1 parent 2af8c4c commit 67e5663

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

src/app/api/hello/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NextResponse } from 'next/server';
1+
import { NextResponse } from "next/server";
22

33
export async function GET() {
4-
return NextResponse.json({ message: 'Hello from the server!' });
4+
return NextResponse.json({ message: "Hello from the server!" });
55
}

src/app/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
'use client';
1+
"use client";
22
import "@/styles/globals.css";
33
import { ReactNode } from "react";
44
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
5-
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
65

76
const queryClient = new QueryClient();
87

@@ -12,7 +11,6 @@ export default function RootLayout({ children }: { children: ReactNode }) {
1211
<body>
1312
<QueryClientProvider client={queryClient}>
1413
{children}
15-
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
1614
</QueryClientProvider>
1715
</body>
1816
</html>

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
'use client'
2-
import { useStore } from '@/store/useStore'
1+
"use client";
2+
import { useStore } from "@/store/useStore";
33

44
export default function Home() {
55
const count = useStore((state) => state.count);

src/hooks/useDebounce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect, useState } from 'react';
1+
import { useEffect, useState } from "react";
22

33
export function useDebounce<T>(value: T, delay: number): T {
44
const [debouncedValue, setDebouncedValue] = useState(value);

src/lib/prisma.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { PrismaClient } from '@prisma/client'
1+
import { PrismaClient } from "@prisma/client";
22

33
const globalForPrisma = globalThis as unknown as {
44
prisma: PrismaClient | undefined
5-
}
5+
};
66

77
export const prisma =
88
globalForPrisma.prisma ||
99
new PrismaClient({
10-
log: ['query']
11-
})
10+
log: ["query"]
11+
});
1212

13-
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma
13+
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function cn(...classes: string[]) {
2-
return classes.filter(Boolean).join(' ');
2+
return classes.filter(Boolean).join(" ");
33
}

src/store/useStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// src/store/useStore.ts
2-
import { create } from 'zustand'
2+
import { create } from "zustand";
33

44
type State = {
55
count: number
@@ -9,4 +9,4 @@ type State = {
99
export const useStore = create<State>((set) => ({
1010
count: 0,
1111
increment: () => set((state) => ({ count: state.count + 1 })),
12-
}))
12+
}));

0 commit comments

Comments
 (0)