Skip to content

Commit 1393f76

Browse files
ericyangpanclaude
andcommitted
style(generated): regenerate files with biome formatting
- Remove semicolons from all generated TypeScript files - Update arrow function and array formatting - Apply consistent spacing and indentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f46a218 commit 1393f76

File tree

11 files changed

+192
-183
lines changed

11 files changed

+192
-183
lines changed

src/lib/generated/articles.ts

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,59 @@
11
// This file is auto-generated by scripts/generate-metadata.mjs
22
// DO NOT EDIT MANUALLY
33

4-
import { articlesMetadata } from './metadata';
4+
import { articlesMetadata } from './metadata'
55

66
export type ArticleMetadata = {
7-
title: string;
8-
description: string;
9-
date: string;
10-
slug: string;
11-
};
7+
title: string
8+
description: string
9+
date: string
10+
slug: string
11+
}
1212

1313
// Get articles for a specific locale with fallback to English
1414
export function getArticles(locale: string = 'en'): ArticleMetadata[] {
15-
return articlesMetadata[locale] || articlesMetadata['en'] || [];
15+
return articlesMetadata[locale] || articlesMetadata.en || []
1616
}
1717

1818
// Get all articles (backward compatibility)
19-
export const articles: ArticleMetadata[] = getArticles('en');
19+
export const articles: ArticleMetadata[] = getArticles('en')
2020

2121
// Get a specific article by slug for a given locale
2222
export function getArticleBySlug(slug: string, locale: string = 'en'): ArticleMetadata | undefined {
23-
const localeArticles = getArticles(locale);
24-
return localeArticles.find((article) => article.slug === slug);
23+
const localeArticles = getArticles(locale)
24+
return localeArticles.find(article => article.slug === slug)
2525
}
2626

2727
// MDX components mapping for all locales (dynamic imports)
28-
const articleComponents: Record<string, Record<string, () => Promise<{ default: React.ComponentType }>>> = {
29-
'en': {
30-
'getting-started-with-ai-coding': () => import('@content/articles/en/getting-started-with-ai-coding.mdx'),
28+
const articleComponents: Record<
29+
string,
30+
Record<string, () => Promise<{ default: React.ComponentType }>>
31+
> = {
32+
en: {
33+
'getting-started-with-ai-coding': () =>
34+
import('@content/articles/en/getting-started-with-ai-coding.mdx'),
3135
'mcp-servers-explained': () => import('@content/articles/en/mcp-servers-explained.mdx'),
3236
},
3337
'zh-Hans': {
34-
'getting-started-with-ai-coding': () => import('@content/articles/zh-Hans/getting-started-with-ai-coding.mdx'),
38+
'getting-started-with-ai-coding': () =>
39+
import('@content/articles/zh-Hans/getting-started-with-ai-coding.mdx'),
3540
'mcp-servers-explained': () => import('@content/articles/zh-Hans/mcp-servers-explained.mdx'),
3641
},
37-
'de': {
38-
'getting-started-with-ai-coding': () => import('@content/articles/de/getting-started-with-ai-coding.mdx'),
42+
de: {
43+
'getting-started-with-ai-coding': () =>
44+
import('@content/articles/de/getting-started-with-ai-coding.mdx'),
3945
'mcp-servers-explained': () => import('@content/articles/de/mcp-servers-explained.mdx'),
4046
},
41-
};
47+
}
4248

4349
// Get a specific article component for a given locale and slug
44-
export async function getArticleComponent(locale: string = 'en', slug: string): Promise<React.ComponentType | null> {
45-
const loaders = articleComponents[locale] || articleComponents['en'];
46-
const loader = loaders?.[slug];
47-
if (!loader) return null;
48-
const mdxModule = await loader();
49-
return mdxModule.default;
50+
export async function getArticleComponent(
51+
locale: string = 'en',
52+
slug: string
53+
): Promise<React.ComponentType | null> {
54+
const loaders = articleComponents[locale] || articleComponents.en
55+
const loader = loaders?.[slug]
56+
if (!loader) return null
57+
const mdxModule = await loader()
58+
return mdxModule.default
5059
}

src/lib/generated/clis.ts

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@
44
* Do not edit manually - run the script to regenerate
55
*/
66

7-
import type { ManifestCLI } from '../../types/manifests';
8-
9-
import AmazonQDeveloperCli from '../../../manifests/clis/amazon-q-developer-cli.json';
10-
import AmpCli from '../../../manifests/clis/amp-cli.json';
11-
import AugmentCodeCli from '../../../manifests/clis/augment-code-cli.json';
12-
import ClaudeCode from '../../../manifests/clis/claude-code.json';
13-
import ClineCli from '../../../manifests/clis/cline-cli.json';
14-
import CodebuddyCli from '../../../manifests/clis/codebuddy-cli.json';
15-
import Codex from '../../../manifests/clis/codex.json';
16-
import ContinueCli from '../../../manifests/clis/continue-cli.json';
17-
import DroidCli from '../../../manifests/clis/droid-cli.json';
18-
import GeminiCli from '../../../manifests/clis/gemini-cli.json';
19-
import GithubCopilotCli from '../../../manifests/clis/github-copilot-cli.json';
20-
import KilocodeCli from '../../../manifests/clis/kilocode-cli.json';
21-
import KimiCli from '../../../manifests/clis/kimi-cli.json';
22-
import Kode from '../../../manifests/clis/kode.json';
23-
import NeovateCode from '../../../manifests/clis/neovate-code.json';
24-
import Opencode from '../../../manifests/clis/opencode.json';
25-
import QoderCli from '../../../manifests/clis/qoder-cli.json';
7+
import AmazonQDeveloperCli from '../../../manifests/clis/amazon-q-developer-cli.json'
8+
import AmpCli from '../../../manifests/clis/amp-cli.json'
9+
import AugmentCodeCli from '../../../manifests/clis/augment-code-cli.json'
10+
import ClaudeCode from '../../../manifests/clis/claude-code.json'
11+
import ClineCli from '../../../manifests/clis/cline-cli.json'
12+
import CodebuddyCli from '../../../manifests/clis/codebuddy-cli.json'
13+
import Codex from '../../../manifests/clis/codex.json'
14+
import ContinueCli from '../../../manifests/clis/continue-cli.json'
15+
import DroidCli from '../../../manifests/clis/droid-cli.json'
16+
import GeminiCli from '../../../manifests/clis/gemini-cli.json'
17+
import GithubCopilotCli from '../../../manifests/clis/github-copilot-cli.json'
18+
import KilocodeCli from '../../../manifests/clis/kilocode-cli.json'
19+
import KimiCli from '../../../manifests/clis/kimi-cli.json'
20+
import Kode from '../../../manifests/clis/kode.json'
21+
import NeovateCode from '../../../manifests/clis/neovate-code.json'
22+
import Opencode from '../../../manifests/clis/opencode.json'
23+
import QoderCli from '../../../manifests/clis/qoder-cli.json'
24+
import type { ManifestCLI } from '../../types/manifests'
2625

2726
export const clisData = [
2827
AmazonQDeveloperCli,
@@ -41,9 +40,9 @@ export const clisData = [
4140
Kode,
4241
NeovateCode,
4342
Opencode,
44-
QoderCli
45-
] as unknown as ManifestCLI[];
43+
QoderCli,
44+
] as unknown as ManifestCLI[]
4645

47-
export type Cli = typeof AmazonQDeveloperCli;
46+
export type Cli = typeof AmazonQDeveloperCli
4847

49-
export default clisData;
48+
export default clisData

src/lib/generated/docs.ts

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,55 @@
11
// This file is auto-generated by scripts/generate-metadata.mjs
22
// DO NOT EDIT MANUALLY
33

4-
import { docsMetadata } from './metadata';
4+
import { docsMetadata } from './metadata'
55

66
export type DocSection = {
7-
id: string;
8-
title: string;
9-
slug: string;
10-
};
7+
id: string
8+
title: string
9+
slug: string
10+
}
1111

1212
// Get doc sections for a specific locale with fallback to English
1313
export function getDocSections(locale: string): DocSection[] {
14-
return docsMetadata[locale] || docsMetadata['en'] || [];
14+
return docsMetadata[locale] || docsMetadata.en || []
1515
}
1616

1717
// Get all doc sections (backward compatibility)
18-
export const docSections: DocSection[] = getDocSections('en');
18+
export const docSections: DocSection[] = getDocSections('en')
1919

2020
// Get a specific doc by slug for a given locale
2121
export function getDocBySlug(slug: string, locale: string = 'en'): DocSection | undefined {
22-
const sections = getDocSections(locale);
23-
return sections.find((doc) => doc.slug === slug);
22+
const sections = getDocSections(locale)
23+
return sections.find(doc => doc.slug === slug)
2424
}
2525

2626
// MDX components mapping for all locales (dynamic imports)
27-
const docComponents: Record<string, Record<string, () => Promise<{ default: React.ComponentType }>>> = {
28-
'en': {
27+
const docComponents: Record<
28+
string,
29+
Record<string, () => Promise<{ default: React.ComponentType }>>
30+
> = {
31+
en: {
2932
'getting-started': () => import('@content/docs/en/getting-started.mdx'),
30-
'welcome': () => import('@content/docs/en/welcome.mdx'),
33+
welcome: () => import('@content/docs/en/welcome.mdx'),
3134
},
3235
'zh-Hans': {
3336
'getting-started': () => import('@content/docs/zh-Hans/getting-started.mdx'),
34-
'welcome': () => import('@content/docs/zh-Hans/welcome.mdx'),
37+
welcome: () => import('@content/docs/zh-Hans/welcome.mdx'),
3538
},
36-
'de': {
39+
de: {
3740
'getting-started': () => import('@content/docs/de/getting-started.mdx'),
38-
'welcome': () => import('@content/docs/de/welcome.mdx'),
41+
welcome: () => import('@content/docs/de/welcome.mdx'),
3942
},
40-
};
43+
}
4144

4245
// Get a specific doc component for a given locale and slug
43-
export async function getDocComponent(locale: string = 'en', slug: string): Promise<React.ComponentType | null> {
44-
const loaders = docComponents[locale] || docComponents['en'];
45-
const loader = loaders?.[slug];
46-
if (!loader) return null;
47-
const mdxModule = await loader();
48-
return mdxModule.default;
46+
export async function getDocComponent(
47+
locale: string = 'en',
48+
slug: string
49+
): Promise<React.ComponentType | null> {
50+
const loaders = docComponents[locale] || docComponents.en
51+
const loader = loaders?.[slug]
52+
if (!loader) return null
53+
const mdxModule = await loader()
54+
return mdxModule.default
4955
}

src/lib/generated/extensions.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
* Do not edit manually - run the script to regenerate
55
*/
66

7-
import type { ManifestExtension } from '../../types/manifests';
8-
9-
import Amp from '../../../manifests/extensions/amp.json';
10-
import AugmentCode from '../../../manifests/extensions/augment-code.json';
11-
import ClaudeCode from '../../../manifests/extensions/claude-code.json';
12-
import Cline from '../../../manifests/extensions/cline.json';
13-
import Continue from '../../../manifests/extensions/continue.json';
14-
import GithubCopilot from '../../../manifests/extensions/github-copilot.json';
15-
import JetbrainsJunie from '../../../manifests/extensions/jetbrains-junie.json';
16-
import KiloCode from '../../../manifests/extensions/kilo-code.json';
17-
import RooCode from '../../../manifests/extensions/roo-code.json';
18-
import Tabnine from '../../../manifests/extensions/tabnine.json';
7+
import Amp from '../../../manifests/extensions/amp.json'
8+
import AugmentCode from '../../../manifests/extensions/augment-code.json'
9+
import ClaudeCode from '../../../manifests/extensions/claude-code.json'
10+
import Cline from '../../../manifests/extensions/cline.json'
11+
import Continue from '../../../manifests/extensions/continue.json'
12+
import GithubCopilot from '../../../manifests/extensions/github-copilot.json'
13+
import JetbrainsJunie from '../../../manifests/extensions/jetbrains-junie.json'
14+
import KiloCode from '../../../manifests/extensions/kilo-code.json'
15+
import RooCode from '../../../manifests/extensions/roo-code.json'
16+
import Tabnine from '../../../manifests/extensions/tabnine.json'
17+
import type { ManifestExtension } from '../../types/manifests'
1918

2019
export const extensionsData = [
2120
Amp,
@@ -27,9 +26,9 @@ export const extensionsData = [
2726
JetbrainsJunie,
2827
KiloCode,
2928
RooCode,
30-
Tabnine
31-
] as unknown as ManifestExtension[];
29+
Tabnine,
30+
] as unknown as ManifestExtension[]
3231

33-
export type Extension = typeof Amp;
32+
export type Extension = typeof Amp
3433

35-
export default extensionsData;
34+
export default extensionsData

src/lib/generated/github-stars.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Do not edit manually - run the script to regenerate
55
*/
66

7-
import githubStarsJson from '../../../data/github-stars.json';
7+
import githubStarsJson from '../../../data/github-stars.json'
88

9-
export type GithubStarsData = Record<string, Record<string, number | null>>;
9+
export type GithubStarsData = Record<string, Record<string, number | null>>
1010

11-
export const githubStarsData = githubStarsJson as GithubStarsData;
11+
export const githubStarsData = githubStarsJson as GithubStarsData
1212

1313
/**
1414
* Get GitHub stars for a specific product
@@ -17,7 +17,7 @@ export const githubStarsData = githubStarsJson as GithubStarsData;
1717
* @returns The number of stars (in thousands) or null if not available
1818
*/
1919
export function getGithubStars(category: string, id: string): number | null {
20-
return githubStarsData[category]?.[id] ?? null;
20+
return githubStarsData[category]?.[id] ?? null
2121
}
2222

23-
export default githubStarsData;
23+
export default githubStarsData

src/lib/generated/ides.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@
44
* Do not edit manually - run the script to regenerate
55
*/
66

7-
import type { ManifestIDE } from '../../types/manifests';
8-
9-
import Codebuddy from '../../../manifests/ides/codebuddy.json';
10-
import Codeflicker from '../../../manifests/ides/codeflicker.json';
11-
import Cursor from '../../../manifests/ides/cursor.json';
12-
import Droid from '../../../manifests/ides/droid.json';
13-
import IntellijIdea from '../../../manifests/ides/intellij-idea.json';
14-
import Kiro from '../../../manifests/ides/kiro.json';
15-
import Qoder from '../../../manifests/ides/qoder.json';
16-
import Trae from '../../../manifests/ides/trae.json';
17-
import Vscode from '../../../manifests/ides/vscode.json';
18-
import Windsurf from '../../../manifests/ides/windsurf.json';
19-
import Zed from '../../../manifests/ides/zed.json';
7+
import Codebuddy from '../../../manifests/ides/codebuddy.json'
8+
import Codeflicker from '../../../manifests/ides/codeflicker.json'
9+
import Cursor from '../../../manifests/ides/cursor.json'
10+
import Droid from '../../../manifests/ides/droid.json'
11+
import IntellijIdea from '../../../manifests/ides/intellij-idea.json'
12+
import Kiro from '../../../manifests/ides/kiro.json'
13+
import Qoder from '../../../manifests/ides/qoder.json'
14+
import Trae from '../../../manifests/ides/trae.json'
15+
import Vscode from '../../../manifests/ides/vscode.json'
16+
import Windsurf from '../../../manifests/ides/windsurf.json'
17+
import Zed from '../../../manifests/ides/zed.json'
18+
import type { ManifestIDE } from '../../types/manifests'
2019

2120
export const idesData = [
2221
Codebuddy,
@@ -29,9 +28,9 @@ export const idesData = [
2928
Trae,
3029
Vscode,
3130
Windsurf,
32-
Zed
33-
] as unknown as ManifestIDE[];
31+
Zed,
32+
] as unknown as ManifestIDE[]
3433

35-
export type Ide = typeof Codebuddy;
34+
export type Ide = typeof Codebuddy
3635

37-
export default idesData;
36+
export default idesData

src/lib/generated/index.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* Do not edit manually - run the script to regenerate
55
*/
66

7-
export { idesData } from './ides';
8-
export type { Ide } from './ides';
9-
export { clisData } from './clis';
10-
export type { Cli } from './clis';
11-
export { modelsData } from './models';
12-
export type { Model } from './models';
13-
export { providersData } from './providers';
14-
export type { Provider } from './providers';
15-
export { extensionsData } from './extensions';
16-
export type { Extension } from './extensions';
17-
export { vendorsData } from './vendors';
18-
export type { Vendor } from './vendors';
7+
export type { Cli } from './clis'
8+
export { clisData } from './clis'
9+
export type { Extension } from './extensions'
10+
export { extensionsData } from './extensions'
11+
export type { Ide } from './ides'
12+
export { idesData } from './ides'
13+
export type { Model } from './models'
14+
export { modelsData } from './models'
15+
export type { Provider } from './providers'
16+
export { providersData } from './providers'
17+
export type { Vendor } from './vendors'
18+
export { vendorsData } from './vendors'

src/lib/generated/manifesto.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
*/
88
export async function getManifestoComponent(locale: string = 'en'): Promise<React.ComponentType> {
99
const components: Record<string, () => Promise<{ default: React.ComponentType }>> = {
10-
'en': () => import('@content/manifesto/en/index.mdx'),
10+
en: () => import('@content/manifesto/en/index.mdx'),
1111
'zh-Hans': () => import('@content/manifesto/zh-Hans/index.mdx'),
12-
'de': () => import('@content/manifesto/de/index.mdx'),
13-
};
12+
de: () => import('@content/manifesto/de/index.mdx'),
13+
}
1414

15-
const loader = components[locale] || components['en'];
16-
const mdxModule = await loader();
17-
return mdxModule.default;
15+
const loader = components[locale] || components.en
16+
const mdxModule = await loader()
17+
return mdxModule.default
1818
}

0 commit comments

Comments
 (0)