Skip to content

Commit 163a9a9

Browse files
bholmesdevastrobot-houston
authored andcommitted
[ci] format
1 parent e2019be commit 163a9a9

File tree

4 files changed

+45
-46
lines changed

4 files changed

+45
-46
lines changed

examples/with-content/src/content/types.generated.d.ts

+38-39
Original file line numberDiff line numberDiff line change
@@ -42,45 +42,44 @@ declare module 'astro:content' {
4242
};
4343

4444
const entryMap: {
45-
"blog": {
46-
"first-post.md": {
47-
id: "first-post.md",
48-
slug: "first-post",
49-
body: string,
50-
collection: "blog",
51-
data: InferEntrySchema<"blog">
52-
},
53-
"markdown-style-guide.md": {
54-
id: "markdown-style-guide.md",
55-
slug: "markdown-style-guide",
56-
body: string,
57-
collection: "blog",
58-
data: InferEntrySchema<"blog">
59-
},
60-
"second-post.md": {
61-
id: "second-post.md",
62-
slug: "second-post",
63-
body: string,
64-
collection: "blog",
65-
data: InferEntrySchema<"blog">
66-
},
67-
"third-post.md": {
68-
id: "third-post.md",
69-
slug: "third-post",
70-
body: string,
71-
collection: "blog",
72-
data: InferEntrySchema<"blog">
73-
},
74-
"using-mdx.mdx": {
75-
id: "using-mdx.mdx",
76-
slug: "using-mdx",
77-
body: string,
78-
collection: "blog",
79-
data: InferEntrySchema<"blog">
80-
},
81-
},
82-
45+
blog: {
46+
'first-post.md': {
47+
id: 'first-post.md';
48+
slug: 'first-post';
49+
body: string;
50+
collection: 'blog';
51+
data: InferEntrySchema<'blog'>;
52+
};
53+
'markdown-style-guide.md': {
54+
id: 'markdown-style-guide.md';
55+
slug: 'markdown-style-guide';
56+
body: string;
57+
collection: 'blog';
58+
data: InferEntrySchema<'blog'>;
59+
};
60+
'second-post.md': {
61+
id: 'second-post.md';
62+
slug: 'second-post';
63+
body: string;
64+
collection: 'blog';
65+
data: InferEntrySchema<'blog'>;
66+
};
67+
'third-post.md': {
68+
id: 'third-post.md';
69+
slug: 'third-post';
70+
body: string;
71+
collection: 'blog';
72+
data: InferEntrySchema<'blog'>;
73+
};
74+
'using-mdx.mdx': {
75+
id: 'using-mdx.mdx';
76+
slug: 'using-mdx';
77+
body: string;
78+
collection: 'blog';
79+
data: InferEntrySchema<'blog'>;
80+
};
81+
};
8382
};
8483

85-
type ContentConfig = typeof import("./config");
84+
type ContentConfig = typeof import('./config');
8685
}

packages/astro/src/vite-plugin-markdown/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { renderMarkdown } from '@astrojs/markdown-remark';
22
import {
3-
safelyGetAstroData,
43
InvalidAstroDataError,
4+
safelyGetAstroData,
55
} from '@astrojs/markdown-remark/dist/internal.js';
66
import fs from 'fs';
77
import matter from 'gray-matter';

packages/integrations/mdx/src/plugins.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
2+
import {
3+
InvalidAstroDataError,
4+
safelyGetAstroData,
5+
} from '@astrojs/markdown-remark/dist/internal.js';
26
import { nodeTypes } from '@mdx-js/mdx';
37
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
48
import type { Options as MdxRollupPluginOptions } from '@mdx-js/rollup';
59
import type { AstroConfig } from 'astro';
6-
import {
7-
safelyGetAstroData,
8-
InvalidAstroDataError,
9-
} from '@astrojs/markdown-remark/dist/internal.js';
1010
import type { Literal, MemberExpression } from 'estree';
1111
import { visit as estreeVisit } from 'estree-util-visit';
1212
import { bold, yellow } from 'kleur/colors';
@@ -16,7 +16,7 @@ import rehypeRaw from 'rehype-raw';
1616
import remarkGfm from 'remark-gfm';
1717
import remarkSmartypants from 'remark-smartypants';
1818
import { visit } from 'unist-util-visit';
19-
import type { Data, VFile } from 'vfile';
19+
import type { VFile } from 'vfile';
2020
import { MdxOptions } from './index.js';
2121
import { rehypeInjectHeadingsExport } from './rehype-collect-headings.js';
2222
import rehypeMetaString from './rehype-meta-string.js';

packages/markdown/remark/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { MarkdownRenderingOptions, MarkdownRenderingResult, MarkdownVFile } from './types';
22

3+
import { toRemarkInitializeAstroData } from './frontmatter-injection.js';
34
import { loadPlugins } from './load-plugins.js';
45
import { rehypeHeadingIds } from './rehype-collect-headings.js';
56
import rehypeEscape from './rehype-escape.js';
@@ -8,7 +9,6 @@ import rehypeIslands from './rehype-islands.js';
89
import rehypeJsx from './rehype-jsx.js';
910
import toRemarkContentRelImageError from './remark-content-rel-image-error.js';
1011
import remarkEscape from './remark-escape.js';
11-
import { toRemarkInitializeAstroData } from './frontmatter-injection.js';
1212
import remarkMarkAndUnravel from './remark-mark-and-unravel.js';
1313
import remarkMdxish from './remark-mdxish.js';
1414
import remarkPrism from './remark-prism.js';

0 commit comments

Comments
 (0)