Skip to content

Commit 8df47d3

Browse files
committed
Spaces indentation
1 parent 3f8325d commit 8df47d3

26 files changed

+522
-512
lines changed

biome.json

Lines changed: 54 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,56 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": {
4-
"enabled": true,
5-
"clientKind": "git",
6-
"useIgnoreFile": true
7-
},
8-
"files": {
9-
"ignore": ["./src/components/ui/**", "**/*.css"]
10-
},
11-
"linter": {
12-
"rules": {
13-
"a11y": {
14-
"noSvgWithoutTitle": "off"
15-
},
16-
"suspicious": {
17-
"noArrayIndexKey": "off",
18-
"noDoubleEquals": {
19-
"fix": "safe",
20-
"level": "warn",
21-
"options": {}
22-
}
23-
},
24-
"style": {
25-
"noNonNullAssertion": "off",
26-
"useSelfClosingElements": {
27-
"fix": "safe",
28-
"level": "warn"
29-
},
30-
"useTemplate": {
31-
"fix": "safe",
32-
"level": "warn"
33-
}
34-
},
35-
"nursery": {
36-
"useSortedClasses": {
37-
"fix": "safe",
38-
"level": "info",
39-
"options": {
40-
"functions": ["cn"]
41-
}
42-
}
43-
}
44-
}
45-
},
46-
"javascript": {
47-
"formatter": {
48-
"semicolons": "asNeeded",
49-
"trailingCommas": "none"
50-
}
51-
}
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignore": ["./src/components/ui/**", "**/*.css"]
10+
},
11+
"formatter": {
12+
"indentStyle": "space",
13+
"indentWidth": 4
14+
},
15+
"linter": {
16+
"rules": {
17+
"a11y": {
18+
"noSvgWithoutTitle": "off"
19+
},
20+
"suspicious": {
21+
"noArrayIndexKey": "off",
22+
"noDoubleEquals": {
23+
"fix": "safe",
24+
"level": "warn",
25+
"options": {}
26+
}
27+
},
28+
"style": {
29+
"noNonNullAssertion": "off",
30+
"useSelfClosingElements": {
31+
"fix": "safe",
32+
"level": "warn"
33+
},
34+
"useTemplate": {
35+
"fix": "safe",
36+
"level": "warn"
37+
}
38+
},
39+
"nursery": {
40+
"useSortedClasses": {
41+
"fix": "safe",
42+
"level": "info",
43+
"options": {
44+
"functions": ["cn"]
45+
}
46+
}
47+
}
48+
}
49+
},
50+
"javascript": {
51+
"formatter": {
52+
"semicolons": "asNeeded",
53+
"trailingCommas": "none"
54+
}
55+
}
5256
}

docs/app/(docs)/[[...slug]]/page.tsx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,62 @@ import { AutoTypeTable } from "fumadocs-typescript/ui"
44
import { Tab, Tabs } from "fumadocs-ui/components/tabs"
55
import defaultMdxComponents from "fumadocs-ui/mdx"
66
import {
7-
DocsBody,
8-
DocsDescription,
9-
DocsPage,
10-
DocsTitle
7+
DocsBody,
8+
DocsDescription,
9+
DocsPage,
10+
DocsTitle
1111
} from "fumadocs-ui/page"
1212
import { notFound } from "next/navigation"
1313

1414
import { source } from "@/lib/source"
1515
const generator = createGenerator()
1616

1717
export default async function Page(props: {
18-
params: Promise<{ slug?: string[] }>
18+
params: Promise<{ slug?: string[] }>
1919
}) {
20-
const params = await props.params
21-
const page = source.getPage(params.slug)
20+
const params = await props.params
21+
const page = source.getPage(params.slug)
2222

23-
if (!page) notFound()
23+
if (!page) notFound()
2424

25-
const MDX = page.data.body
25+
const MDX = page.data.body
2626

27-
return (
28-
<DocsPage full={page.data.full} toc={page.data.toc}>
29-
<DocsTitle>{page.data.title}</DocsTitle>
27+
return (
28+
<DocsPage full={page.data.full} toc={page.data.toc}>
29+
<DocsTitle>{page.data.title}</DocsTitle>
3030

31-
<DocsDescription>{page.data.description}</DocsDescription>
31+
<DocsDescription>{page.data.description}</DocsDescription>
3232

33-
<DocsBody>
34-
<MDX
35-
components={{
36-
AutoTypeTable: (props) => (
37-
<AutoTypeTable {...props} generator={generator} />
38-
),
39-
Tab,
40-
Tabs,
41-
...defaultMdxComponents
42-
}}
43-
/>
44-
</DocsBody>
45-
</DocsPage>
46-
)
33+
<DocsBody>
34+
<MDX
35+
components={{
36+
AutoTypeTable: (props) => (
37+
<AutoTypeTable {...props} generator={generator} />
38+
),
39+
Tab,
40+
Tabs,
41+
...defaultMdxComponents
42+
}}
43+
/>
44+
</DocsBody>
45+
</DocsPage>
46+
)
4747
}
4848

4949
export async function generateStaticParams() {
50-
return source.generateParams()
50+
return source.generateParams()
5151
}
5252

5353
export async function generateMetadata(props: {
54-
params: Promise<{ slug?: string[] }>
54+
params: Promise<{ slug?: string[] }>
5555
}) {
56-
const params = await props.params
57-
const page = source.getPage(params.slug)
56+
const params = await props.params
57+
const page = source.getPage(params.slug)
5858

59-
if (!page) notFound()
59+
if (!page) notFound()
6060

61-
return {
62-
title: page.data.title,
63-
description: page.data.description
64-
}
61+
return {
62+
title: page.data.title,
63+
description: page.data.description
64+
}
6565
}

docs/app/(docs)/layout.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { baseOptions } from "@/app/layout.config"
55
import { source } from "@/lib/source"
66

77
export default function Layout({ children }: { children: ReactNode }) {
8-
return (
9-
<DocsLayout
10-
tree={source.pageTree}
11-
{...baseOptions}
12-
themeSwitch={{
13-
mode: "light-dark-system"
14-
}}
15-
>
16-
{children}
17-
</DocsLayout>
18-
)
8+
return (
9+
<DocsLayout
10+
tree={source.pageTree}
11+
{...baseOptions}
12+
themeSwitch={{
13+
mode: "light-dark-system"
14+
}}
15+
>
16+
{children}
17+
</DocsLayout>
18+
)
1919
}

docs/app/layout.config.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared"
88
* Docs Layout: app/docs/layout.tsx
99
*/
1010
export const baseOptions: BaseLayoutProps = {
11-
nav: {
12-
// can be JSX too!
13-
title: "My App"
14-
},
15-
links: [
16-
{
17-
text: "Documentation",
18-
url: "/docs",
19-
active: "nested-url"
20-
}
21-
]
11+
nav: {
12+
// can be JSX too!
13+
title: "My App"
14+
},
15+
links: [
16+
{
17+
text: "Documentation",
18+
url: "/docs",
19+
active: "nested-url"
20+
}
21+
]
2222
}

docs/app/layout.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ import type { ReactNode } from "react"
55
import "./global.css"
66

77
const inter = Inter({
8-
subsets: ["latin"]
8+
subsets: ["latin"]
99
})
1010

1111
export default function Layout({ children }: { children: ReactNode }) {
12-
return (
13-
<html className={inter.className} lang="en" suppressHydrationWarning>
14-
<body className="flex min-h-screen flex-col">
15-
<RootProvider
16-
search={{
17-
options: {
18-
type: "static"
19-
}
20-
}}
21-
>
22-
{children}
23-
</RootProvider>
24-
</body>
25-
</html>
26-
)
12+
return (
13+
<html className={inter.className} lang="en" suppressHydrationWarning>
14+
<body className="flex min-h-screen flex-col">
15+
<RootProvider
16+
search={{
17+
options: {
18+
type: "static"
19+
}
20+
}}
21+
>
22+
{children}
23+
</RootProvider>
24+
</body>
25+
</html>
26+
)
2727
}

docs/lib/metadata.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
import type { Metadata } from "next/types"
22

33
export function createMetadata(override: Metadata): Metadata {
4-
return {
5-
// ...override,
6-
// openGraph: {
7-
// title: override.title ?? undefined,
8-
// description: override.description ?? undefined,
9-
// url: "https://better-auth-ui.com",
10-
// images: "https://better-auth-ui.com/better-auth-ui-promo-dark.png",
11-
// siteName: "Better Auth UI",
12-
// ...override.openGraph
13-
// },
14-
// twitter: {
15-
// card: "summary_large_image",
16-
// creator: "@daveycodez",
17-
// title: override.title ?? undefined,
18-
// description: override.description ?? undefined,
19-
// images: "https://better-auth-ui.com/better-auth-ui-promo-dark.png",
20-
// ...override.twitter
21-
// }
22-
}
4+
return {
5+
// ...override,
6+
// openGraph: {
7+
// title: override.title ?? undefined,
8+
// description: override.description ?? undefined,
9+
// url: "https://better-auth-ui.com",
10+
// images: "https://better-auth-ui.com/better-auth-ui-promo-dark.png",
11+
// siteName: "Better Auth UI",
12+
// ...override.openGraph
13+
// },
14+
// twitter: {
15+
// card: "summary_large_image",
16+
// creator: "@daveycodez",
17+
// title: override.title ?? undefined,
18+
// description: override.description ?? undefined,
19+
// images: "https://better-auth-ui.com/better-auth-ui-promo-dark.png",
20+
// ...override.twitter
21+
// }
22+
}
2323
}
2424

2525
export const baseUrl =
26-
process.env.NODE_ENV === "development"
27-
? new URL("http://localhost:3000")
28-
: new URL(`https://${process.env.VERCEL_URL!}`)
26+
process.env.NODE_ENV === "development"
27+
? new URL("http://localhost:3000")
28+
: new URL(`https://${process.env.VERCEL_URL!}`)

docs/lib/source.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { createMDXSource } from "fumadocs-mdx"
44
import { docs, meta } from "@/.source"
55

66
export const source = loader({
7-
baseUrl: "/",
8-
source: createMDXSource(docs, meta)
7+
baseUrl: "/",
8+
source: createMDXSource(docs, meta)
99
})

docs/next.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const withMDX = createMDX()
44

55
/** @type {import('next').NextConfig} */
66
const config = {
7-
reactStrictMode: true,
8-
output: "export",
9-
basePath:
10-
process.env.NODE_ENV === "production" ? "/tsx-package-fumadocs" : "",
11-
images: { unoptimized: true }
7+
reactStrictMode: true,
8+
output: "export",
9+
basePath:
10+
process.env.NODE_ENV === "production" ? "/tsx-package-fumadocs" : "",
11+
images: { unoptimized: true }
1212
}
1313

1414
export default withMDX(config)

0 commit comments

Comments
 (0)