summaryrefslogtreecommitdiff
path: root/packages/integrations/react/src
diff options
context:
space:
mode:
authorGravatar Louis Escher <ematipico@users.noreply.github.com> 2025-01-14 11:53:40 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2025-01-14 11:53:40 +0000
commit1072c76703b725919cf52f63cf254a3fba90c030 (patch)
tree14091c9268cce77b34bfd53fdba57914251b5bb2 /packages/integrations/react/src
parentea603aec80531205d38fed11c525b3faa0271903 (diff)
downloadastro-1072c76703b725919cf52f63cf254a3fba90c030.tar.gz
astro-1072c76703b725919cf52f63cf254a3fba90c030.tar.zst
astro-1072c76703b725919cf52f63cf254a3fba90c030.zip
[ci] format
Diffstat (limited to 'packages/integrations/react/src')
-rw-r--r--packages/integrations/react/src/index.ts10
1 files changed, 7 insertions, 3 deletions
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.',
+ );
}
- }
+ },
},
};
}