From 1d73883469fe48e58e0e2e414f7b7d9196eabf65 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 1 Apr 2021 20:34:51 +0000 Subject: [PATCH] [ci] npm run format --- src/@types/micromark.ts | 3 +-- src/compiler/markdown/micromark-mdx-astro.ts | 9 ++++----- src/compiler/markdown/micromark.d.ts | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/@types/micromark.ts b/src/@types/micromark.ts index 0e0dc2465..9725aabb9 100644 --- a/src/@types/micromark.ts +++ b/src/@types/micromark.ts @@ -1,4 +1,3 @@ - export interface MicromarkExtensionContext { sliceSerialize(node: any): string; raw(value: string): void; @@ -9,4 +8,4 @@ export type MicromarkExtensionCallback = (this: MicromarkExtensionContext, node: export interface MicromarkExtension { enter?: Record; exit?: Record; -} \ No newline at end of file +} diff --git a/src/compiler/markdown/micromark-mdx-astro.ts b/src/compiler/markdown/micromark-mdx-astro.ts index 0ffd69fb1..b978ad407 100644 --- a/src/compiler/markdown/micromark-mdx-astro.ts +++ b/src/compiler/markdown/micromark-mdx-astro.ts @@ -2,7 +2,6 @@ import type { MicromarkExtension } from '../../@types/micromark'; import mdxExpression from 'micromark-extension-mdx-expression'; import mdxJsx from 'micromark-extension-mdx-jsx'; - /** * Keep MDX. */ @@ -12,12 +11,12 @@ export function encodeAstroMdx() { mdxJsxFlowTag(node: any) { const mdx = this.sliceSerialize(node); this.raw(mdx); - } - } + }, + }, }; return { htmlAstro: [mdxExpression(), mdxJsx()], - mdAstro: extension + mdAstro: extension, }; -} \ No newline at end of file +} diff --git a/src/compiler/markdown/micromark.d.ts b/src/compiler/markdown/micromark.d.ts index 1f389e473..fd094306e 100644 --- a/src/compiler/markdown/micromark.d.ts +++ b/src/compiler/markdown/micromark.d.ts @@ -1,11 +1,11 @@ declare module 'micromark-extension-mdx-expression' { import type { HtmlExtension } from 'micromark/dist/shared-types'; - export default function(): HtmlExtension; + export default function (): HtmlExtension; } declare module 'micromark-extension-mdx-jsx' { import type { HtmlExtension } from 'micromark/dist/shared-types'; - export default function(): HtmlExtension; -} \ No newline at end of file + export default function (): HtmlExtension; +}