summaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-08-24 14:40:44 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-24 14:40:44 +0000
commit4bbcbac0b73c7e34b81ba2e4eeee08481fde1eaa (patch)
tree0777c6a83eb9c8c0712b5cc79a74b03d2c379498 /packages/integrations
parentf1c610636a7aeed0a272ab2669815135699b413c (diff)
downloadastro-4bbcbac0b73c7e34b81ba2e4eeee08481fde1eaa.tar.gz
astro-4bbcbac0b73c7e34b81ba2e4eeee08481fde1eaa.tar.zst
astro-4bbcbac0b73c7e34b81ba2e4eeee08481fde1eaa.zip
[ci] format
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/mdx/src/index.ts2
-rw-r--r--packages/integrations/preact/src/index.ts2
-rw-r--r--packages/integrations/react/src/index.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts
index e9c6924c6..8366698d5 100644
--- a/packages/integrations/mdx/src/index.ts
+++ b/packages/integrations/mdx/src/index.ts
@@ -3,6 +3,7 @@ import { toRemarkInitializeAstroData } from '@astrojs/markdown-remark/dist/inter
import { compile as mdxCompile, type CompileOptions } from '@mdx-js/mdx';
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
import type { AstroIntegration, ContentEntryType, HookParameters } from 'astro';
+import astroJSXRenderer from 'astro/jsx/renderer.js';
import { parse as parseESM } from 'es-module-lexer';
import fs from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
@@ -13,7 +14,6 @@ import type { Plugin as VitePlugin } from 'vite';
import { getRehypePlugins, getRemarkPlugins, recmaInjectImportMetaEnvPlugin } from './plugins.js';
import type { OptimizeOptions } from './rehype-optimize-static.js';
import { getFileInfo, ignoreStringPlugins, parseFrontmatter } from './utils.js';
-import astroJSXRenderer from 'astro/jsx/renderer.js';
export type MdxOptions = Omit<typeof markdownConfigDefaults, 'remarkPlugins' | 'rehypePlugins'> & {
extendMarkdownConfig: boolean;
diff --git a/packages/integrations/preact/src/index.ts b/packages/integrations/preact/src/index.ts
index 9551f97eb..85c3c66ec 100644
--- a/packages/integrations/preact/src/index.ts
+++ b/packages/integrations/preact/src/index.ts
@@ -1,5 +1,5 @@
-import type { AstroIntegration, AstroRenderer, ViteUserConfig } from 'astro';
import preact, { type PreactPluginOptions as VitePreactPluginOptions } from '@preact/preset-vite';
+import type { AstroIntegration, AstroRenderer, ViteUserConfig } from 'astro';
import { fileURLToPath } from 'node:url';
const babelCwd = new URL('../', import.meta.url);
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index 1cc200bc3..a09544baf 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -1,7 +1,7 @@
+import { appendForwardSlash } from '@astrojs/internal-helpers/path';
+import react, { type Options as ViteReactPluginOptions } from '@vitejs/plugin-react';
import type { AstroIntegration } from 'astro';
import { version as ReactVersion } from 'react-dom';
-import react, { type Options as ViteReactPluginOptions } from '@vitejs/plugin-react';
-import { appendForwardSlash } from '@astrojs/internal-helpers/path';
import type * as vite from 'vite';
export type ReactIntegrationOptions = Pick<ViteReactPluginOptions, 'include' | 'exclude'> & {