diff options
author | 2025-01-14 11:53:40 +0000 | |
---|---|---|
committer | 2025-01-14 11:53:40 +0000 | |
commit | 1072c76703b725919cf52f63cf254a3fba90c030 (patch) | |
tree | 14091c9268cce77b34bfd53fdba57914251b5bb2 | |
parent | ea603aec80531205d38fed11c525b3faa0271903 (diff) | |
download | astro-1072c76703b725919cf52f63cf254a3fba90c030.tar.gz astro-1072c76703b725919cf52f63cf254a3fba90c030.tar.zst astro-1072c76703b725919cf52f63cf254a3fba90c030.zip |
[ci] format
-rw-r--r-- | packages/integrations/preact/src/index.ts | 10 | ||||
-rw-r--r-- | packages/integrations/react/src/index.ts | 10 | ||||
-rw-r--r-- | packages/integrations/solid/src/index.ts | 10 | ||||
-rw-r--r-- | packages/integrations/vue/src/index.ts | 10 |
4 files changed, 28 insertions, 12 deletions
diff --git a/packages/integrations/preact/src/index.ts b/packages/integrations/preact/src/index.ts index 1f6b7857b..fd16a9e4a 100644 --- a/packages/integrations/preact/src/index.ts +++ b/packages/integrations/preact/src/index.ts @@ -73,12 +73,16 @@ export default function ({ include, exclude, compat, devtools }: Options = {}): }, 'astro:config:done': ({ logger, config }) => { const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js']; - const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name)); + const enabledKnownJsxRenderers = config.integrations.filter((renderer) => + knownJsxRenderers.includes(renderer.name), + ); if (enabledKnownJsxRenderers.length > 1 && !include && !exclude) { - logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/preact/#combining-multiple-jsx-frameworks for more information.'); + logger.warn( + 'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/preact/#combining-multiple-jsx-frameworks for more information.', + ); } - } + }, }, }; } diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts index 16f4064d0..1569a7c70 100644 --- a/packages/integrations/react/src/index.ts +++ b/packages/integrations/react/src/index.ts @@ -102,12 +102,16 @@ export default function ({ }, 'astro:config:done': ({ logger, config }) => { const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js']; - const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name)); + const enabledKnownJsxRenderers = config.integrations.filter((renderer) => + knownJsxRenderers.includes(renderer.name), + ); if (enabledKnownJsxRenderers.length > 1 && !include && !exclude) { - logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/react/#combining-multiple-jsx-frameworks for more information.'); + logger.warn( + 'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/react/#combining-multiple-jsx-frameworks for more information.', + ); } - } + }, }, }; } diff --git a/packages/integrations/solid/src/index.ts b/packages/integrations/solid/src/index.ts index 662bfa254..deab40fd0 100644 --- a/packages/integrations/solid/src/index.ts +++ b/packages/integrations/solid/src/index.ts @@ -110,12 +110,16 @@ export default function (options: Options = {}): AstroIntegration { }, 'astro:config:done': ({ logger, config }) => { const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js']; - const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name)); + const enabledKnownJsxRenderers = config.integrations.filter((renderer) => + knownJsxRenderers.includes(renderer.name), + ); if (enabledKnownJsxRenderers.length > 1 && !options.include && !options.exclude) { - logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.'); + logger.warn( + 'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.', + ); } - } + }, }, }; } diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index 2c7992fe8..f81167323 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -162,13 +162,17 @@ export default function (options?: Options): AstroIntegration { if (!options?.jsx) return; const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js']; - const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name)); + const enabledKnownJsxRenderers = config.integrations.filter((renderer) => + knownJsxRenderers.includes(renderer.name), + ); // This error can only be thrown from here since Vue is an optional JSX renderer if (enabledKnownJsxRenderers.length > 1 && !options?.include && !options?.exclude) { - logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.'); + logger.warn( + 'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.', + ); } - } + }, }, }; } |