From 9352e0056c54de87fb5f229fe15924672c3e6e0e Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 27 Mar 2023 22:06:51 +0000 Subject: [PATCH] [ci] format --- packages/integrations/markdoc/src/index.ts | 4 ++-- packages/integrations/markdoc/src/load-config.ts | 4 ++-- packages/integrations/markdoc/src/utils.ts | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/integrations/markdoc/src/index.ts b/packages/integrations/markdoc/src/index.ts index feb9a501c6..55d13169b7 100644 --- a/packages/integrations/markdoc/src/index.ts +++ b/packages/integrations/markdoc/src/index.ts @@ -6,10 +6,10 @@ import { fileURLToPath } from 'node:url'; import { isValidUrl, MarkdocError, parseFrontmatter, prependForwardSlash } from './utils.js'; // @ts-expect-error Cannot find module 'astro/assets' or its corresponding type declarations. import { emitESMImage } from 'astro/assets'; -import { loadMarkdocConfig } from './load-config.js'; -import { applyDefaultConfig } from './default-config.js'; import { bold, red } from 'kleur/colors'; import type * as rollup from 'rollup'; +import { applyDefaultConfig } from './default-config.js'; +import { loadMarkdocConfig } from './load-config.js'; type SetupHookParams = HookParameters<'astro:config:setup'> & { // `contentEntryType` is not a public API diff --git a/packages/integrations/markdoc/src/load-config.ts b/packages/integrations/markdoc/src/load-config.ts index db36edf258..af4e0e4aad 100644 --- a/packages/integrations/markdoc/src/load-config.ts +++ b/packages/integrations/markdoc/src/load-config.ts @@ -1,8 +1,8 @@ -import type { AstroConfig } from 'astro'; import type { Config as MarkdocConfig } from '@markdoc/markdoc'; +import type { AstroConfig } from 'astro'; import { build as esbuild } from 'esbuild'; -import { fileURLToPath } from 'node:url'; import * as fs from 'node:fs'; +import { fileURLToPath } from 'node:url'; const SUPPORTED_MARKDOC_CONFIG_FILES = [ 'markdoc.config.js', diff --git a/packages/integrations/markdoc/src/utils.ts b/packages/integrations/markdoc/src/utils.ts index 95f84700c2..ea5dda6db3 100644 --- a/packages/integrations/markdoc/src/utils.ts +++ b/packages/integrations/markdoc/src/utils.ts @@ -1,6 +1,4 @@ import matter from 'gray-matter'; -import type fsMod from 'node:fs'; -import path from 'node:path'; import type { ErrorPayload as ViteErrorPayload } from 'vite'; /**