Skip to content

Commit 4e95624

Browse files
committed
fix(eslint): address ESLint issues across the project
1 parent d2e4920 commit 4e95624

File tree

14 files changed

+150
-152
lines changed

14 files changed

+150
-152
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Page from "./page";
2-
import { constructMetadata } from "@/lib/utils"
3-
import { Metadata } from "next/types"
2+
import { constructMetadata } from "@/lib/utils";
3+
import { Metadata } from "next/types";
44

55
export const metadata: Metadata = constructMetadata({
6-
title: 'Reset Password',
7-
description: 'Reset your password',
8-
canonical: '/reset-password',
9-
})
6+
title: "Reset Password",
7+
description: "Reset your password",
8+
canonical: "/reset-password",
9+
});
1010

1111
export default Page;

app/(auth)/signin/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Page from "./page";
2-
import { constructMetadata } from "@/lib/utils"
3-
import { Metadata } from "next/types"
2+
import { constructMetadata } from "@/lib/utils";
3+
import { Metadata } from "next/types";
44

55
export const metadata: Metadata = constructMetadata({
6-
title: 'Sign In',
7-
description: 'Sign in to your account',
8-
canonical: '/signin',
9-
})
6+
title: "Sign In",
7+
description: "Sign in to your account",
8+
canonical: "/signin",
9+
});
1010

1111
export default Page;

app/(auth)/signup/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Page from "./page";
2-
import { constructMetadata } from "@/lib/utils"
3-
import { Metadata } from "next/types"
2+
import { constructMetadata } from "@/lib/utils";
3+
import { Metadata } from "next/types";
44

55
export const metadata: Metadata = constructMetadata({
6-
title: 'Sign Up',
7-
description: 'Sign up for an account',
8-
canonical: '/signup',
9-
})
6+
title: "Sign Up",
7+
description: "Sign up for an account",
8+
canonical: "/signup",
9+
});
1010

1111
export default Page;

app/(auth)/signup/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { createClient } from "@/utils/supabase/server";
33
import SignUpComponent from "@/components/auth/signup";
44

55
export default async function SignUp() {
6-
const supabase = createClient()
7-
const { data } = await supabase.auth.getUser()
8-
6+
const supabase = createClient();
7+
const { data } = await supabase.auth.getUser();
8+
99
if (data?.user) {
1010
redirect("/");
1111
}

app/(profile)/settings/layout.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Page from "./page";
2-
import { constructMetadata } from "@/lib/utils"
3-
import { Metadata } from "next/types"
2+
import { constructMetadata } from "@/lib/utils";
3+
import { Metadata } from "next/types";
44

55
export const metadata: Metadata = constructMetadata({
6-
title: 'Settings',
7-
description: 'Settings for your account.',
8-
canonical: '/settings',
9-
})
6+
title: "Settings",
7+
description: "Settings for your account.",
8+
canonical: "/settings",
9+
});
1010

11-
export default Page;
11+
export default Page;

app/(profile)/settings/page.tsx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
import { redirect } from 'next/navigation'
2-
import { createClient } from '@/utils/supabase/server'
1+
import { redirect } from "next/navigation";
2+
import { createClient } from "@/utils/supabase/server";
33

44
export default async function Settings() {
5-
const supabase = createClient()
5+
const supabase = createClient();
66

7-
const { data, error } = await supabase.auth.getUser()
7+
const { data, error } = await supabase.auth.getUser();
88
if (error || !data?.user) {
9-
redirect('/signin')
9+
redirect("/signin");
1010
}
11-
11+
1212
return (
1313
<section className="relative">
14-
<div className="max-w-6xl mx-auto px-4 sm:px-6">
15-
<div className="pt-32 pb-12 md:pt-40 md:pb-20">
16-
14+
<div className="mx-auto max-w-6xl px-4 sm:px-6">
15+
<div className="pb-12 pt-32 md:pb-20 md:pt-40">
1716
{/* Page header */}
18-
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-20">
19-
<h1 className="h1">Settings</h1>
17+
<div className="mx-auto max-w-3xl pb-12 text-center md:pb-20">
18+
<h1 className="h1">Settings</h1>
2019
</div>
2120

2221
{/* Settings */}
23-
<div className="max-w-sm mx-auto">
24-
<div className="flex flex-wrap -mx-3 mb-4">
22+
<div className="mx-auto max-w-sm">
23+
<div className="-mx-3 mb-4 flex flex-wrap">
2524
<div className="w-full px-3">
26-
<p className="text-gray-300 text-sm font-medium mb-1">
25+
<p className="mb-1 text-sm font-medium text-gray-300">
2726
Full Name: {data.user.user_metadata.full_name}
2827
</p>
29-
<p className="text-gray-300 text-sm font-medium mb-1">
28+
<p className="mb-1 text-sm font-medium text-gray-300">
3029
Email: {data.user.email}
3130
</p>
3231
</div>
@@ -35,5 +34,5 @@ export default async function Settings() {
3534
</div>
3635
</div>
3736
</section>
38-
)
39-
}
37+
);
38+
}

components/auth/reset-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function ResetPassword() {
2323
<div className="mx-auto max-w-3xl pb-12 text-center md:pb-20">
2424
<h1 className="h1 mb-4">Forgot your password?</h1>
2525
<p className="text-xl text-gray-400">
26-
We'll email you instructions on how to reset it.
26+
We&apos;ll email you instructions on how to reset it.
2727
</p>
2828
</div>
2929

components/blocks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function Blocks() {
55
<div className="border-t border-gray-800 py-12 md:py-20">
66
{/* Section header */}
77
<div className="mx-auto max-w-3xl pb-12 text-center md:pb-20">
8-
<h2 className="h2 mb-4">Oh - and it's all Open Sourced.</h2>
8+
<h2 className="h2 mb-4">Oh - and it&apos;s all Open Sourced.</h2>
99
<p className="text-xl text-gray-400">
1010
Made by developers for developers.
1111
</p>

components/features.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Features() {
99
data-aos="fade-up"
1010
data-aos-delay="1000"
1111
>
12-
<h2 className="h2 mb-4">Oh - and it's all Open Sourced.</h2>
12+
<h2 className="h2 mb-4">Oh - and it&apos;s all Open Sourced.</h2>
1313
<p className="text-xl text-gray-400">
1414
Pear is made by developers, for developers. Help us out by giving
1515
<a

0 commit comments

Comments
 (0)