Skip to content

Commit 33978fa

Browse files
committed
chore: format all files according to prettier
1 parent 6e77aca commit 33978fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+808
-747
lines changed

.eslintrc.json

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es2021": true
5-
},
6-
"extends": "standard-with-typescript",
7-
"overrides": [
8-
],
9-
"parserOptions": {
10-
"project": "./tsconfig.json",
11-
"ecmaVersion": "latest",
12-
"sourceType": "module"
13-
},
14-
"rules": {
15-
}
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": "standard-with-typescript",
7+
"overrides": [],
8+
"parserOptions": {
9+
"project": "./tsconfig.json",
10+
"ecmaVersion": "latest",
11+
"sourceType": "module"
12+
},
13+
"rules": {}
1614
}

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.serverless
2+
__generated__
3+
CHANGELOG.md
4+
coverage
5+
dist
6+
pnpm-lock.yaml
7+
prisma/migrations
8+
**/translations/*.json

.prettierrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"quoteProps": "as-needed",
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"arrowParens": "avoid",
11+
"endOfLine": "lf",
12+
"overrides": [
13+
{
14+
"files": "*.yml",
15+
"options": {
16+
"tabWidth": 2
17+
}
18+
}
19+
]
20+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# devhunt
2+
23
A launching platform for dev tools, built by developers. Open-source and collaborative, we use GitHub pull requests for listings and user logins for genuine voting. Join us at DevHunt to showcase your innovations and empower developer tools across the web!
34

45
## Getting Started

app/globals.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
@tailwind utilities;
44

55
* {
6-
scroll-behavior: smooth;
6+
scroll-behavior: smooth;
77
}
88

99
.custom-screen {
10-
@apply max-w-screen-xl mx-auto px-4 md:px-8;
10+
@apply max-w-screen-xl mx-auto px-4 md:px-8;
1111
}
1212

1313
.container-custom-screen {
14-
@apply max-w-3xl mx-auto px-4 md:px-8;
15-
}
14+
@apply max-w-3xl mx-auto px-4 md:px-8;
15+
}

app/layout.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ export const metadata = {
99
description: '',
1010
}
1111

12-
export default function RootLayout({
13-
children,
14-
}: {
15-
children: React.ReactNode
16-
}) {
12+
export default function RootLayout({ children }: { children: React.ReactNode }) {
1713
return (
18-
<html lang="en" className='bg-slate-900'>
14+
<html lang="en" className="bg-slate-900">
1915
<body className={inter.className}>
2016
<main>
2117
<Navbar />

app/page.tsx

+27-35
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,35 @@
1-
import Logo from "@/components/ui/ProductCard/Product.Logo";
2-
import Name from "@/components/ui/ProductCard/Product.Name";
3-
import Tags from "@/components/ui/ProductCard/Product.Tags";
4-
import Title from "@/components/ui/ProductCard/Product.Title";
5-
import Votes from "@/components/ui/ProductCard/Product.Votes";
6-
import ProductCard from "@/components/ui/ProductCard/ProductCard";
7-
import mockproducts from "@/mockproducts";
1+
import Logo from '@/components/ui/ProductCard/Product.Logo'
2+
import Name from '@/components/ui/ProductCard/Product.Name'
3+
import Tags from '@/components/ui/ProductCard/Product.Tags'
4+
import Title from '@/components/ui/ProductCard/Product.Title'
5+
import Votes from '@/components/ui/ProductCard/Product.Votes'
6+
import ProductCard from '@/components/ui/ProductCard/ProductCard'
7+
import mockproducts from '@/mockproducts'
88

99
export default function Home() {
1010
return (
1111
<section className="max-w-4xl mt-20 mx-auto px-4 md:px-8">
12-
<h1 className="text-slate-50 text-lg font-semibold xl:px-4">
13-
Find your next favorite product
14-
</h1>
12+
<h1 className="text-slate-50 text-lg font-semibold xl:px-4">Find your next favorite product</h1>
1513

16-
<div className="mt-10">
17-
<ul className="divide-y divide-slate-800/60">
18-
{
19-
mockproducts.map((item, idx) => (
20-
<li key={idx} className="py-3">
21-
<ProductCard href={item.slug}>
22-
<Logo src={item.logo} alt={item.title} />
23-
<div className="space-y-1">
24-
<Name>
25-
{item.name}
26-
</Name>
27-
<Title className="line-clamp-1 sm:line-clamp-2">
28-
{item.title}
29-
</Title>
30-
<Tags items={["Free", "Developer Tools"]} />
31-
</div>
32-
<div className="flex-1 self-center flex justify-end">
33-
<Votes count={item.votes} />
34-
</div>
35-
</ProductCard>
36-
</li>
37-
))
38-
}
39-
</ul>
40-
</div>
14+
<div className="mt-10">
15+
<ul className="divide-y divide-slate-800/60">
16+
{mockproducts.map((item, idx) => (
17+
<li key={idx} className="py-3">
18+
<ProductCard href={item.slug}>
19+
<Logo src={item.logo} alt={item.title} />
20+
<div className="space-y-1">
21+
<Name>{item.name}</Name>
22+
<Title className="line-clamp-1 sm:line-clamp-2">{item.title}</Title>
23+
<Tags items={['Free', 'Developer Tools']} />
24+
</div>
25+
<div className="flex-1 self-center flex justify-end">
26+
<Votes count={item.votes} />
27+
</div>
28+
</ProductCard>
29+
</li>
30+
))}
31+
</ul>
32+
</div>
4133
</section>
4234
)
4335
}

0 commit comments

Comments
 (0)