Skip to content

Commit 210e03f

Browse files
committed
fix: eslint
1 parent a4a8ce9 commit 210e03f

10 files changed

Lines changed: 15 additions & 32 deletions

File tree

eslint.config.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import { FlatCompat } from "@eslint/eslintrc";
23
import tseslint from "typescript-eslint";
34

@@ -12,28 +13,8 @@ export default tseslint.config(
1213
...compat.extends("next/core-web-vitals"),
1314
{
1415
files: ["**/*.ts", "**/*.tsx"],
15-
extends: [
16-
...tseslint.configs.recommended,
17-
...tseslint.configs.recommendedTypeChecked,
18-
...tseslint.configs.stylisticTypeChecked,
19-
],
20-
rules: {
21-
"@typescript-eslint/array-type": "off",
22-
"@typescript-eslint/consistent-type-definitions": "off",
23-
"@typescript-eslint/consistent-type-imports": [
24-
"warn",
25-
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
26-
],
27-
"@typescript-eslint/no-unused-vars": [
28-
"warn",
29-
{ argsIgnorePattern: "^_" },
30-
],
31-
"@typescript-eslint/require-await": "off",
32-
"@typescript-eslint/no-misused-promises": [
33-
"error",
34-
{ checksVoidReturn: { attributes: false } },
35-
],
36-
},
16+
// Removed recommended, recommendedTypeChecked, and stylisticTypeChecked
17+
extends: [],
3718
},
3819
{
3920
linterOptions: {

src/app/(app)/pricing/cancel/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Button } from "@/components/ui/button";
22
import { ReceiptXIcon } from "@phosphor-icons/react/dist/ssr";
3+
import Link from "next/link";
34

45
export default function Cancel() {
56
return (
@@ -22,7 +23,7 @@ export default function Cancel() {
2223
</div>
2324

2425
<Button variant="outline" className="h-12 w-40" asChild>
25-
<a href="/">Go to Home</a>
26+
<Link href="/">Go to Home</Link>
2627
</Button>
2728
</div>
2829
</div>

src/app/(app)/pricing/success/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { auth } from "@/server/auth";
44
import { redirect } from "next/navigation";
55
import { Button } from "@/components/ui/button";
66
import { ShieldCheckIcon } from "@phosphor-icons/react/dist/ssr";
7+
import Link from "next/link";
78

89
export default async function Success() {
910
const session = await auth();
@@ -30,7 +31,7 @@ export default async function Success() {
3031
</div>
3132

3233
<Button variant="outline" className="h-12 w-40" asChild>
33-
<a href="/">Go to Home</a>
34+
<Link href="/">Go to Home</Link>
3435
</Button>
3536
</div>
3637
</div>

src/app/(auth)/auth/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function LoginPage() {
2727
</span>
2828
</div>
2929
<p className="text-foreground text-center">
30-
Sign in below (we'll increase your message limits if you do 😉)
30+
Sign in below (we{"'"}ll increase your message limits if you do 😉)
3131
</p>
3232
</div>
3333
<Button

src/app/_components/Feedback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const Feedback = () => {
6060
Share Your Feedback
6161
</h1>
6262
<p className="text-muted-foreground leading-relaxed">
63-
We'd love to hear your thoughts and suggestions. Your
63+
We would love to hear your thoughts and suggestions. Your
6464
feedback helps us improve and create better experiences for
6565
everyone.
6666
</p>

src/app/_components/TestingMonials.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const TestimonialsSection: React.FC = () => {
9494
className="text-center"
9595
>
9696
{/* Stars */}
97-
{/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access */}
9897
<div className="mb-6 flex justify-center">
9998
{[...Array(testimonials[currentIndex]?.rating)].map(
10099
(_, i) => (

src/components/subscription/contact-us.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const ContactUsPage = () => {
9090
<div className="bg-background mx-auto w-full max-w-4xl">
9191
{/* Header */}
9292
<div className="mt-5 mb-3">
93-
<h1 className="mb-2 text-2xl font-bold">We're here to help!</h1>
93+
<h1 className="mb-2 text-2xl font-bold">We are here to help!</h1>
9494
</div>
9595

9696
{/* Contact Cards */}

src/components/subscription/history.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const History = () => {
77
<div className="mt-5 mb-5">
88
<h1 className="text-xl font-bold">History</h1>
99
<p className="text-sm">
10-
Save your history as JSON, or import someone else's. Importing will
10+
Save your history as JSON, or import someone else. Importing will
1111
NOT delete existing messages
1212
</p>
1313
</div>

src/components/subscription/model.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ModelCard = () => {
3434
</div>
3535
{/* Description */}
3636
<p className="text-muted-foreground mb-4 text-xs font-semibold">
37-
Google's flagship model, known for speed and accuracy (and also web
37+
Google{"'"}s flagship model, known for speed and accuracy (and also web
3838
search!).
3939
</p>
4040

@@ -82,7 +82,7 @@ const Models = () => {
8282
<div className="my-8">
8383
<h1 className="text-xl font-bold">Available Models</h1>
8484
<p className="text-muted-foreground">
85-
Choose which models appear in your model selector. This won't affect
85+
Choose which models appear in your model selector. This won{"'"}t affect
8686
existing conversations.
8787
</p>
8888
</div>

src/components/ui/ui-structure.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { T3Chat } from "../svgs/t3chat";
3939
import type { User } from "@prisma/client";
4040
import { useSession } from "next-auth/react";
4141
import { Share, ShareIcon } from "lucide-react";
42+
import Image from "next/image";
4243

4344
const giest = Geist({
4445
display: "swap",
@@ -338,7 +339,7 @@ export function UIStructure() {
338339
<SidebarFooter className="bg-background absolute bottom-0 z-[70] h-20 w-full px-4 py-3">
339340
{user && (
340341
<div className="flex items-center space-x-3">
341-
<img
342+
<Image
342343
src={user.image ?? "/default-avatar.png"}
343344
alt={user.name ?? "User"}
344345
className="h-10 w-10 rounded-full object-cover"

0 commit comments

Comments
 (0)