diff options
author | 2022-08-05 23:58:09 +0000 | |
---|---|---|
committer | 2022-08-05 23:58:09 +0000 | |
commit | 367cdd9ed8e638a787ede358afdb124939ff8262 (patch) | |
tree | 591f106c24c165ef07b1558781b6e5e5ff5e6143 /packages/integrations/mdx/src | |
parent | c039ea93a1372d954f924a1e6a019a834d1eeb7a (diff) | |
download | astro-367cdd9ed8e638a787ede358afdb124939ff8262.tar.gz astro-367cdd9ed8e638a787ede358afdb124939ff8262.tar.zst astro-367cdd9ed8e638a787ede358afdb124939ff8262.zip |
[ci] format
Diffstat (limited to 'packages/integrations/mdx/src')
-rw-r--r-- | packages/integrations/mdx/src/astro-data-utils.ts | 5 | ||||
-rw-r--r-- | packages/integrations/mdx/src/index.ts | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/packages/integrations/mdx/src/astro-data-utils.ts b/packages/integrations/mdx/src/astro-data-utils.ts index bfbc74461..3300c7b55 100644 --- a/packages/integrations/mdx/src/astro-data-utils.ts +++ b/packages/integrations/mdx/src/astro-data-utils.ts @@ -1,8 +1,7 @@ +import type { MarkdownAstroData } from 'astro'; import { name as isValidIdentifierName } from 'estree-util-is-identifier-name'; -import type { VFile } from 'vfile'; import type { MdxjsEsm } from 'mdast-util-mdx'; -import type { MarkdownAstroData } from 'astro'; -import type { Data } from 'vfile'; +import type { Data, VFile } from 'vfile'; import { jsToTreeNode } from './utils.js'; export function remarkInitializeAstroData() { diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index 3b1ceaa4c..85eec630e 100644 --- a/packages/integrations/mdx/src/index.ts +++ b/packages/integrations/mdx/src/index.ts @@ -1,7 +1,6 @@ import { compile as mdxCompile, nodeTypes } from '@mdx-js/mdx'; import mdxPlugin, { Options as MdxRollupPluginOptions } from '@mdx-js/rollup'; -import type { AstroIntegration, AstroConfig } from 'astro'; -import { remarkInitializeAstroData, rehypeApplyFrontmatterExport } from './astro-data-utils.js'; +import type { AstroConfig, AstroIntegration } from 'astro'; import { parse as parseESM } from 'es-module-lexer'; import rehypeRaw from 'rehype-raw'; import remarkGfm from 'remark-gfm'; @@ -10,6 +9,7 @@ import remarkShikiTwoslash from 'remark-shiki-twoslash'; import remarkSmartypants from 'remark-smartypants'; import { VFile } from 'vfile'; import type { Plugin as VitePlugin } from 'vite'; +import { rehypeApplyFrontmatterExport, remarkInitializeAstroData } from './astro-data-utils.js'; import rehypeCollectHeadings from './rehype-collect-headings.js'; import remarkPrism from './remark-prism.js'; import { getFileInfo, parseFrontmatter } from './utils.js'; |