[ci] format

This commit is contained in:
bholmesdev 2023-06-27 19:08:29 +00:00 committed by astrobot-houston
parent fb7af55114
commit 647079da14
4 changed files with 12 additions and 16 deletions

View file

@ -1,3 +1,4 @@
import { isRelativePath } from '@astrojs/internal-helpers/path';
import type {
Config,
ConfigType as MarkdocConfig,
@ -5,10 +6,9 @@ import type {
NodeType,
Schema,
} from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import _Markdoc from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import { heading } from './heading-ids.js';
import { isRelativePath } from '@astrojs/internal-helpers/path';
import { componentConfigSymbol } from './utils.js';
export type Render = ComponentConfig | AstroInstance['default'] | string;

View file

@ -1,19 +1,19 @@
/* eslint-disable no-console */
import type { Config as MarkdocConfig, Node } from '@markdoc/markdoc';
import type { ErrorPayload as ViteErrorPayload } from 'vite';
import matter from 'gray-matter';
import Markdoc from '@markdoc/markdoc';
import type { AstroConfig, ContentEntryType } from 'astro';
import matter from 'gray-matter';
import fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import { isValidUrl, MarkdocError, prependForwardSlash, isComponentConfig } from './utils.js';
import type { ErrorPayload as ViteErrorPayload } from 'vite';
import type { ComponentConfig } from './config.js';
import { isComponentConfig, isValidUrl, MarkdocError, prependForwardSlash } from './utils.js';
// @ts-expect-error Cannot find module 'astro/assets' or its corresponding type declarations.
import { emitESMImage } from 'astro/assets';
import path from 'node:path';
import type * as rollup from 'rollup';
import { setupConfig } from './runtime.js';
import type { MarkdocConfigResult } from './load-config.js';
import { setupConfig } from './runtime.js';
export async function getContentEntryType({
markdocConfigResult,

View file

@ -1,14 +1,14 @@
/* eslint-disable no-console */
import type { AstroIntegration, ContentEntryType, HookParameters, AstroConfig } from 'astro';
import { fileURLToPath } from 'node:url';
import type { AstroConfig, AstroIntegration, ContentEntryType, HookParameters } from 'astro';
import { bold, red } from 'kleur/colors';
import { fileURLToPath } from 'node:url';
import { normalizePath } from 'vite';
import { getContentEntryType } from './content-entry-type.js';
import {
loadMarkdocConfig,
type MarkdocConfigResult,
SUPPORTED_MARKDOC_CONFIG_FILES,
type MarkdocConfigResult,
} from './load-config.js';
import { getContentEntryType } from './content-entry-type.js';
type SetupHookParams = HookParameters<'astro:config:setup'> & {
// `contentEntryType` is not a public API

View file

@ -1,16 +1,12 @@
import type { MarkdownHeading } from '@astrojs/markdown-remark';
import type { AstroInstance } from 'astro';
import {
createComponent,
renderComponent,
// @ts-expect-error Cannot find module 'astro/runtime/server/index.js' or its corresponding type declarations.
} from 'astro/runtime/server/index.js';
import Markdoc, {
type ConfigType,
type Node,
type NodeType,
type RenderableTreeNode,
} from '@markdoc/markdoc';
import type { AstroInstance } from 'astro';
import { createComponent, renderComponent } from 'astro/runtime/server/index.js';
import type { AstroMarkdocConfig } from './config.js';
import { setupHeadingConfig } from './heading-ids.js';