Skip to content

Commit 175608b

Browse files
committed
fix lint
1 parent 8036f64 commit 175608b

File tree

10 files changed

+81
-51
lines changed

10 files changed

+81
-51
lines changed

apps/docs/postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
plugins: {
3-
'@tailwindcss/postcss': {},
3+
"@tailwindcss/postcss": {},
44
},
55
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { HomeLayout } from 'fumadocs-ui/layouts/home';
2-
import { baseOptions } from '@/lib/layout.shared';
1+
import { HomeLayout } from "fumadocs-ui/layouts/home";
2+
import { baseOptions } from "@/lib/layout.shared";
33

4-
export default function Layout({ children }: LayoutProps<'/'>) {
4+
export default function Layout({ children }: LayoutProps<"/">) {
55
return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
66
}

apps/docs/src/app/(home)/page.tsx

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,58 +38,90 @@ export default function HomePage() {
3838
<span className="ml-2 text-white">coda generate</span>
3939
<br />
4040
<br />
41-
<span className="text-gray-400">⠋ Searching for IDL files...</span>
41+
<span className="text-gray-400">
42+
⠋ Searching for IDL files...
43+
</span>
4244
<br />
4345
<span className="text-green-400"></span>
44-
<span className="ml-2 text-gray-300">Found IDL at ./idls/my_program.json</span>
46+
<span className="ml-2 text-gray-300">
47+
Found IDL at ./idls/my_program.json
48+
</span>
4549
<br />
4650
<span className="text-green-400"></span>
47-
<span className="ml-2 text-gray-300">Parsing Anchor IDL...</span>
51+
<span className="ml-2 text-gray-300">
52+
Parsing Anchor IDL...
53+
</span>
4854
<br />
4955
<span className="text-green-400"></span>
50-
<span className="ml-2 text-gray-300">Building AST from 12 instructions</span>
56+
<span className="ml-2 text-gray-300">
57+
Building AST from 12 instructions
58+
</span>
5159
<br />
5260
<span className="text-green-400"></span>
53-
<span className="ml-2 text-gray-300">Applying visitor transformations</span>
61+
<span className="ml-2 text-gray-300">
62+
Applying visitor transformations
63+
</span>
5464
<br />
5565
<span className="text-green-400"></span>
56-
<span className="ml-2 text-gray-300">Generating TypeScript client...</span>
66+
<span className="ml-2 text-gray-300">
67+
Generating TypeScript client...
68+
</span>
5769
<br />
5870
<br />
59-
<span className="text-green-400 font-bold">✓ Client generated successfully</span>
71+
<span className="text-green-400 font-bold">
72+
✓ Client generated successfully
73+
</span>
6074
<span className="ml-2 text-gray-500">at ./src/generated</span>
6175
<br />
6276
<br />
6377
<span className="text-cyan-400">~/my-solana-project</span>
6478
<span className="text-gray-500"> main</span>
6579
<br />
6680
<span className="text-green-400"></span>
67-
<span className="ml-2 text-white">ls -la ./src/generated</span>
81+
<span className="ml-2 text-white">
82+
ls -la ./src/generated
83+
</span>
6884
<br />
6985
<span className="text-gray-500">total 24</span>
7086
<br />
71-
<span className="text-gray-300">drwxr-xr-x 8 user staff 256 Aug 22 10:02 </span>
87+
<span className="text-gray-300">
88+
drwxr-xr-x 8 user staff 256 Aug 22 10:02{" "}
89+
</span>
7290
<span className="text-cyan-400">.</span>
7391
<br />
74-
<span className="text-gray-300">drwxr-xr-x 5 user staff 160 Aug 22 10:02 </span>
92+
<span className="text-gray-300">
93+
drwxr-xr-x 5 user staff 160 Aug 22 10:02{" "}
94+
</span>
7595
<span className="text-cyan-400">..</span>
7696
<br />
77-
<span className="text-gray-300">drwxr-xr-x 4 user staff 128 Aug 22 10:02 </span>
97+
<span className="text-gray-300">
98+
drwxr-xr-x 4 user staff 128 Aug 22 10:02{" "}
99+
</span>
78100
<span className="text-blue-400">accounts</span>
79101
<br />
80-
<span className="text-gray-300">drwxr-xr-x 3 user staff 96 Aug 22 10:02 </span>
102+
<span className="text-gray-300">
103+
drwxr-xr-x 3 user staff 96 Aug 22 10:02{" "}
104+
</span>
81105
<span className="text-blue-400">errors</span>
82106
<br />
83-
<span className="text-gray-300">-rw-r--r-- 1 user staff 1024 Aug 22 10:02 </span>
107+
<span className="text-gray-300">
108+
-rw-r--r-- 1 user staff 1024 Aug 22 10:02{" "}
109+
</span>
84110
<span className="text-white">index.ts</span>
85111
<br />
86-
<span className="text-gray-300">drwxr-xr-x 6 user staff 192 Aug 22 10:02 </span>
112+
<span className="text-gray-300">
113+
drwxr-xr-x 6 user staff 192 Aug 22 10:02{" "}
114+
</span>
87115
<span className="text-blue-400">instructions</span>
88116
<br />
89-
<span className="text-gray-300">drwxr-xr-x 3 user staff 96 Aug 22 10:02 </span>
117+
<span className="text-gray-300">
118+
drwxr-xr-x 3 user staff 96 Aug 22 10:02{" "}
119+
</span>
90120
<span className="text-blue-400">pdas</span>
91121
<br />
92-
<span className="text-gray-300">drwxr-xr-x 5 user staff 160 Aug 22 10:02 </span>
122+
<span className="text-gray-300">
123+
drwxr-xr-x 5 user staff 160 Aug 22 10:02{" "}
124+
</span>
93125
<span className="text-blue-400">types</span>
94126
<br />
95127
<br />
@@ -223,4 +255,4 @@ const instruction = createTransferInstruction({
223255
</section>
224256
</main>
225257
);
226-
}
258+
}

apps/docs/src/app/docs/[[...slug]]/page.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
import { source } from '@/lib/source';
1+
import { createRelativeLink } from "fumadocs-ui/mdx";
22
import {
33
DocsBody,
44
DocsDescription,
55
DocsPage,
66
DocsTitle,
7-
} from 'fumadocs-ui/page';
8-
import type { Metadata } from 'next';
9-
import { notFound } from 'next/navigation';
10-
import { createRelativeLink } from 'fumadocs-ui/mdx';
11-
import { getMDXComponents } from '@/mdx-components';
7+
} from "fumadocs-ui/page";
8+
import type { Metadata } from "next";
9+
import { notFound } from "next/navigation";
10+
import { source } from "@/lib/source";
11+
import { getMDXComponents } from "@/mdx-components";
1212

13-
export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
13+
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
1414
const params = await props.params;
1515
const page = source.getPage(params.slug);
16-
if (!page) notFound();
16+
if (!page) {
17+
notFound();
18+
}
1719

1820
const MDXContent = page.data.body;
1921

@@ -38,11 +40,13 @@ export async function generateStaticParams() {
3840
}
3941

4042
export async function generateMetadata(
41-
props: PageProps<'/docs/[[...slug]]'>,
43+
props: PageProps<"/docs/[[...slug]]">,
4244
): Promise<Metadata> {
4345
const params = await props.params;
4446
const page = source.getPage(params.slug);
45-
if (!page) notFound();
47+
if (!page) {
48+
notFound();
49+
}
4650

4751
return {
4852
title: page.data.title,

apps/docs/src/app/docs/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
2-
import { baseOptions } from '@/lib/layout.shared';
3-
import { source } from '@/lib/source';
1+
import { DocsLayout } from "fumadocs-ui/layouts/docs";
2+
import { baseOptions } from "@/lib/layout.shared";
3+
import { source } from "@/lib/source";
44

5-
export default function Layout({ children }: LayoutProps<'/docs'>) {
5+
export default function Layout({ children }: LayoutProps<"/docs">) {
66
return (
77
<DocsLayout tree={source.pageTree} {...baseOptions()}>
88
{children}

apps/docs/src/app/global.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@import 'tailwindcss';
2-
@import 'fumadocs-ui/css/neutral.css';
3-
@import 'fumadocs-ui/css/preset.css';
1+
@import "tailwindcss";
2+
@import "fumadocs-ui/css/neutral.css";
3+
@import "fumadocs-ui/css/preset.css";

apps/docs/src/lib/layout.shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
1+
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
22

33
/**
44
* Shared layout configurations

apps/docs/src/lib/source.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { docs } from '@/.source';
2-
import { loader } from 'fumadocs-core/source';
1+
import { loader } from "fumadocs-core/source";
2+
import { docs } from "@/.source";
33

44
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
55
export const source = loader({
66
// it assigns a URL to your pages
7-
baseUrl: '/docs',
7+
baseUrl: "/docs",
88
source: docs.toFumadocsSource(),
99
});

apps/docs/src/mdx-components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import defaultMdxComponents from 'fumadocs-ui/mdx';
2-
import type { MDXComponents } from 'mdx/types';
1+
import defaultMdxComponents from "fumadocs-ui/mdx";
2+
import type { MDXComponents } from "mdx/types";
33

44
// use this function to get MDX components, you will need it for rendering MDX
55
export function getMDXComponents(components?: MDXComponents): MDXComponents {

biome.jsonc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88
},
99
"files": {
1010
"ignoreUnknown": false,
11-
"includes": [
12-
"**",
13-
"!docs/.next",
14-
"!out",
15-
"!**/bun.lock",
16-
"!apps/example-dapp/src/routeTree.gen.ts"
17-
]
11+
"includes": ["**", "!docs/.next", "!out", "!**/bun.lock", "!vendor"]
1812
},
1913
"formatter": {
2014
"enabled": true,

0 commit comments

Comments
 (0)