Skip to content

Commit 10be14b

Browse files
committed
chore: pretty:fix ran
1 parent c77ca7a commit 10be14b

16 files changed

Lines changed: 241 additions & 240 deletions

File tree

eslint.config.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { dirname } from "path"
2-
import { fileURLToPath } from "url"
3-
import { FlatCompat } from "@eslint/eslintrc"
4-
import eslintConfigPrettier from "eslint-config-prettier/flat"
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
import eslintConfigPrettier from "eslint-config-prettier/flat";
55

6-
const __filename = fileURLToPath(import.meta.url)
7-
const __dirname = dirname(__filename)
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = dirname(__filename);
88

99
const compat = new FlatCompat({
1010
baseDirectory: __dirname,
11-
})
11+
});
1212

1313
const eslintConfig = [
1414
...compat.extends("next/core-web-vitals", "next/typescript"),
1515
{
1616
ignores: ["dist/", ".next/", "node_modules", "./public/"],
1717
},
1818
eslintConfigPrettier,
19-
]
19+
];
2020

21-
export default eslintConfig
21+
export default eslintConfig;

next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { NextConfig } from "next"
1+
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5-
}
5+
};
66

7-
export default nextConfig
7+
export default nextConfig;

postcss.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
22
plugins: ["@tailwindcss/postcss"],
3-
}
3+
};
44

5-
export default config
5+
export default config;

src/app/(screen)/about/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Button } from "@/components/ui/button"
2-
import Link from "next/link"
3-
import React from "react"
4-
import Image from "next/image"
1+
import { Button } from "@/components/ui/button";
2+
import Link from "next/link";
3+
import React from "react";
4+
import Image from "next/image";
55

66
const About = () => {
77
return (
@@ -65,7 +65,7 @@ const About = () => {
6565
</Button>
6666
</div>
6767
</div>
68-
)
69-
}
68+
);
69+
};
7070

71-
export default About
71+
export default About;

src/app/(screen)/contact/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from "react"
2-
import ContactForm from "@/components/form/ContactForm"
1+
import React from "react";
2+
import ContactForm from "@/components/form/ContactForm";
33

44
export default function Contact() {
55
return (
@@ -17,5 +17,5 @@ export default function Contact() {
1717
<ContactForm />
1818
</div>
1919
</div>
20-
)
20+
);
2121
}

src/app/(screen)/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Button } from "@/components/ui/button"
2-
import Link from "next/link"
1+
import { Button } from "@/components/ui/button";
2+
import Link from "next/link";
33

44
export default function Home() {
55
return (
@@ -23,5 +23,5 @@ export default function Home() {
2323
</Button>
2424
</div>
2525
</div>
26-
)
26+
);
2727
}

src/app/layout.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import type { Metadata } from "next"
2-
import { Geist, Geist_Mono } from "next/font/google"
3-
import "./globals.css"
4-
import Header from "@/components/layout/Header"
1+
import type { Metadata } from "next";
2+
import { Geist, Geist_Mono } from "next/font/google";
3+
import "./globals.css";
4+
import Header from "@/components/layout/Header";
55

66
const geistSans = Geist({
77
variable: "--font-geist-sans",
88
subsets: ["latin"],
9-
})
9+
});
1010

1111
const geistMono = Geist_Mono({
1212
variable: "--font-geist-mono",
1313
subsets: ["latin"],
14-
})
14+
});
1515

1616
export const metadata: Metadata = {
1717
title: "The Syntax Syndicate",
1818
description: "We deliver the best websites for your business",
19-
}
19+
};
2020

2121
export default function RootLayout({
2222
children,
2323
}: Readonly<{
24-
children: React.ReactNode
24+
children: React.ReactNode;
2525
}>) {
2626
return (
2727
<html lang="en" className="dark --font-poppins">
@@ -38,5 +38,5 @@ export default function RootLayout({
3838
{/* <Footer/> */}
3939
</body>
4040
</html>
41-
)
41+
);
4242
}

src/components/layout/Head.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
"use client"
2-
import Image from "next/image"
3-
import { Button } from "../ui/button"
4-
import Link from "next/link"
5-
import { useState, useEffect } from "react"
6-
import { Menu, X } from "lucide-react"
1+
"use client";
2+
import Image from "next/image";
3+
import { Button } from "../ui/button";
4+
import Link from "next/link";
5+
import { useState, useEffect } from "react";
6+
import { Menu, X } from "lucide-react";
77

88
const Header = () => {
9-
const [scroll, setScroll] = useState(false)
10-
const [isOpen, setIsOpen] = useState(false)
9+
const [scroll, setScroll] = useState(false);
10+
const [isOpen, setIsOpen] = useState(false);
1111

1212
useEffect(() => {
1313
const handleScroll = () => {
14-
setScroll(window.scrollY > 20)
15-
}
16-
document.addEventListener("scroll", handleScroll)
17-
return () => document.removeEventListener("scroll", handleScroll)
18-
}, [])
14+
setScroll(window.scrollY > 20);
15+
};
16+
document.addEventListener("scroll", handleScroll);
17+
return () => document.removeEventListener("scroll", handleScroll);
18+
}, []);
1919

2020
return (
2121
<header
@@ -114,7 +114,7 @@ const Header = () => {
114114
</div>
115115
)}
116116
</header>
117-
)
118-
}
117+
);
118+
};
119119

120-
export default Header
120+
export default Header;

src/components/layout/Header.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
"use client"
2-
import Image from "next/image"
3-
import { Button } from "../ui/button"
4-
import Link from "next/link"
5-
import { useState, useEffect } from "react"
6-
import { Menu, X } from "lucide-react"
1+
"use client";
2+
import Image from "next/image";
3+
import { Button } from "../ui/button";
4+
import Link from "next/link";
5+
import { useState, useEffect } from "react";
6+
import { Menu, X } from "lucide-react";
77

88
const Header = () => {
9-
const [scroll, setScroll] = useState(false)
10-
const [isOpen, setIsOpen] = useState(false)
9+
const [scroll, setScroll] = useState(false);
10+
const [isOpen, setIsOpen] = useState(false);
1111

1212
useEffect(() => {
1313
const handleScroll = () => {
14-
setScroll(window.scrollY > 20)
15-
}
16-
document.addEventListener("scroll", handleScroll)
17-
return () => document.removeEventListener("scroll", handleScroll)
18-
}, [])
14+
setScroll(window.scrollY > 20);
15+
};
16+
document.addEventListener("scroll", handleScroll);
17+
return () => document.removeEventListener("scroll", handleScroll);
18+
}, []);
1919

2020
return (
2121
<header
@@ -124,7 +124,7 @@ const Header = () => {
124124
</div>
125125
)}
126126
</header>
127-
)
128-
}
127+
);
128+
};
129129

130-
export default Header
130+
export default Header;

src/components/ui/button.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { Slot } from "@radix-ui/react-slot";
3+
import { cva, type VariantProps } from "class-variance-authority";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

77
const buttonVariants = cva(
88
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -33,7 +33,7 @@ const buttonVariants = cva(
3333
size: "default",
3434
},
3535
}
36-
)
36+
);
3737

3838
function Button({
3939
className,
@@ -43,17 +43,17 @@ function Button({
4343
...props
4444
}: React.ComponentProps<"button"> &
4545
VariantProps<typeof buttonVariants> & {
46-
asChild?: boolean
46+
asChild?: boolean;
4747
}) {
48-
const Comp = asChild ? Slot : "button"
48+
const Comp = asChild ? Slot : "button";
4949

5050
return (
5151
<Comp
5252
data-slot="button"
5353
className={cn(buttonVariants({ variant, size, className }))}
5454
{...props}
5555
/>
56-
)
56+
);
5757
}
5858

59-
export { Button, buttonVariants }
59+
export { Button, buttonVariants };

0 commit comments

Comments
 (0)