[ci] format

This commit is contained in:
bholmesdev 2023-05-31 23:21:07 +00:00 committed by fredkbot
parent 339529fc82
commit c86f0c6e3e
4 changed files with 5 additions and 6 deletions

View file

@ -82,7 +82,7 @@ export async function* crawlGraph(
}
}
}
if(!isPropagationStoppingPoint) {
if (!isPropagationStoppingPoint) {
importedModules.add(importedModule);
}
}

View file

@ -18,9 +18,9 @@ import { emitESMImage } from 'astro/assets';
import { bold, red, yellow } from 'kleur/colors';
import path from 'node:path';
import type * as rollup from 'rollup';
import { normalizePath } from 'vite';
import { loadMarkdocConfig, type MarkdocConfigResult } from './load-config.js';
import { setupConfig } from './runtime.js';
import { normalizePath } from 'vite';
type SetupHookParams = HookParameters<'astro:config:setup'> & {
// `contentEntryType` is not a public API
@ -56,7 +56,7 @@ export default function markdocIntegration(legacyConfig?: any): AstroIntegration
} = params as SetupHookParams;
markdocConfigResult = await loadMarkdocConfig(astroConfig);
if(markdocConfigResult) {
if (markdocConfigResult) {
markdocConfigResultId = normalizePath(fileURLToPath(markdocConfigResult.fileUrl));
}
const userMarkdocConfig = markdocConfigResult?.config ?? {};
@ -129,7 +129,7 @@ export default function markdocIntegration(legacyConfig?: any): AstroIntegration
${
markdocConfigResult
? `import _userConfig from ${JSON.stringify(
markdocConfigResultId
markdocConfigResultId
)};\nconst userConfig = _userConfig ?? {};`
: 'const userConfig = {};'
}${

View file

@ -1,6 +1,5 @@
import type { MarkdownHeading } from '@astrojs/markdown-remark';
import Markdoc, { type RenderableTreeNode } from '@markdoc/markdoc';
import type { ContentEntryModule } from 'astro';
import type { AstroMarkdocConfig } from './config.js';
import { setupHeadingConfig } from './heading-ids.js';

View file

@ -1,6 +1,6 @@
import matter from 'gray-matter';
import crypto from 'node:crypto';
import path from 'node:path';
import matter from 'gray-matter';
import type { ErrorPayload as ViteErrorPayload } from 'vite';
/**