From b6935e6ac5f462e3ab25a04e5f75a7c172198974 Mon Sep 17 00:00:00 2001 From: bluwy Date: Wed, 17 May 2023 12:54:20 +0000 Subject: [PATCH] [ci] format --- packages/astro/astro-jsx.d.ts | 5 ++++- packages/astro/src/core/config/settings.ts | 2 +- packages/astro/src/core/render/environment.ts | 2 +- packages/astro/src/integrations/index.ts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index c3b28b36a..93888c826 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -18,7 +18,10 @@ declare namespace astroHTML.JSX { children: {}; } - interface IntrinsicAttributes extends AstroBuiltinProps, AstroBuiltinAttributes, AstroClientDirectives { + interface IntrinsicAttributes + extends AstroBuiltinProps, + AstroBuiltinAttributes, + AstroClientDirectives { slot?: string; children?: Children; } diff --git a/packages/astro/src/core/config/settings.ts b/packages/astro/src/core/config/settings.ts index fa90af4c0..e4b259b1f 100644 --- a/packages/astro/src/core/config/settings.ts +++ b/packages/astro/src/core/config/settings.ts @@ -4,10 +4,10 @@ import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from './../constants.js'; import { fileURLToPath, pathToFileURL } from 'url'; import jsxRenderer from '../../jsx/renderer.js'; import { markdownContentEntryType } from '../../vite-plugin-markdown/content-entry-type.js'; +import { getDefaultClientDirectives } from '../client-directive/index.js'; import { createDefaultDevConfig } from './config.js'; import { AstroTimer } from './timer.js'; import { loadTSConfig } from './tsconfig.js'; -import { getDefaultClientDirectives } from '../client-directive/index.js'; export function createBaseSettings(config: AstroConfig): AstroSettings { return { diff --git a/packages/astro/src/core/render/environment.ts b/packages/astro/src/core/render/environment.ts index d4a1cc38e..a141ff728 100644 --- a/packages/astro/src/core/render/environment.ts +++ b/packages/astro/src/core/render/environment.ts @@ -1,8 +1,8 @@ import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark'; import type { RuntimeMode, SSRLoadedRenderer } from '../../@types/astro'; +import { getDefaultClientDirectives } from '../client-directive/default.js'; import type { LogOptions } from '../logger/core.js'; import { RouteCache } from './route-cache.js'; -import { getDefaultClientDirectives } from '../client-directive/default.js'; /** * An environment represents the static parts of rendering that do not change diff --git a/packages/astro/src/integrations/index.ts b/packages/astro/src/integrations/index.ts index f833d94a1..2e00b3a74 100644 --- a/packages/astro/src/integrations/index.ts +++ b/packages/astro/src/integrations/index.ts @@ -14,10 +14,10 @@ import type { } from '../@types/astro.js'; import type { SerializedSSRManifest } from '../core/app/types'; import type { PageBuildData } from '../core/build/types'; +import { buildClientDirectiveEntrypoint } from '../core/client-directive/index.js'; import { mergeConfig } from '../core/config/config.js'; import { info, type LogOptions } from '../core/logger/core.js'; import { mdxContentEntryType } from '../vite-plugin-markdown/content-entry-type.js'; -import { buildClientDirectiveEntrypoint } from '../core/client-directive/index.js'; async function withTakingALongTimeMsg({ name,