diff --git a/quartz/plugins/loader/config-loader.ts b/quartz/plugins/loader/config-loader.ts index 51516d627..9d227b4dd 100644 --- a/quartz/plugins/loader/config-loader.ts +++ b/quartz/plugins/loader/config-loader.ts @@ -286,8 +286,7 @@ export async function loadQuartzConfig( } } else { const gitSpec = parsePluginSource(entry.source) - const isComponentOnly = - categories.length > 0 && categories.every((c) => c === "component") + const isComponentOnly = categories.length > 0 && categories.every((c) => c === "component") if (isComponentOnly) { // Always import the main entry point for component-only plugins. diff --git a/quartz/plugins/pageTypes/dispatcher.ts b/quartz/plugins/pageTypes/dispatcher.ts index 3381a8871..9a8bff9c7 100644 --- a/quartz/plugins/pageTypes/dispatcher.ts +++ b/quartz/plugins/pageTypes/dispatcher.ts @@ -207,7 +207,16 @@ export const PageTypeDispatcher: QuartzEmitterPlugin> for (const pt of pageTypes) { if (pt.match({ slug, fileData, cfg })) { const layout = resolveLayout(pt, defaults, byPageType) - yield emitPage(ctx, slug, tree, fileData, allFilesWithVirtual, layout, resources, treeTransforms) + yield emitPage( + ctx, + slug, + tree, + fileData, + allFilesWithVirtual, + layout, + resources, + treeTransforms, + ) break } } @@ -290,7 +299,16 @@ export const PageTypeDispatcher: QuartzEmitterPlugin> for (const pt of pageTypes) { if (pt.match({ slug, fileData, cfg })) { const layout = resolveLayout(pt, defaults, byPageType) - yield emitPage(ctx, slug, tree, fileData, allFilesWithVirtual, layout, resources, treeTransforms) + yield emitPage( + ctx, + slug, + tree, + fileData, + allFilesWithVirtual, + layout, + resources, + treeTransforms, + ) break } } diff --git a/quartz/plugins/types.ts b/quartz/plugins/types.ts index 8b5924f32..c440aea0c 100644 --- a/quartz/plugins/types.ts +++ b/quartz/plugins/types.ts @@ -1,7 +1,11 @@ import { PluggableList } from "unified" import { StaticResources } from "../util/resources" import { ProcessedContent, QuartzPluginData } from "./vfile" -import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../components/types" +import { + QuartzComponent, + QuartzComponentConstructor, + QuartzComponentProps, +} from "../components/types" import { FilePath, FullSlug } from "../util/path" import { BuildCtx } from "../util/ctx" import { GlobalConfiguration } from "../cfg" @@ -92,7 +96,11 @@ export type PageGenerator = (args: { }) => VirtualPage[] /** A function that mutates a HAST tree at render time, when allFiles is available. */ -export type TreeTransform = (root: Root, slug: FullSlug, componentData: QuartzComponentProps) => void +export type TreeTransform = ( + root: Root, + slug: FullSlug, + componentData: QuartzComponentProps, +) => void export type QuartzPageTypePlugin = ( opts?: Options,