From f36bce043ff3137b4178a88fde581e5e3374869d Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 31 Aug 2023 15:32:51 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/integrations/index.ts | 4 ++-- packages/integrations/mdx/test/mdx-plus-react.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/integrations/index.ts b/packages/astro/src/integrations/index.ts index 7cf1387c7..774ea5b04 100644 --- a/packages/astro/src/integrations/index.ts +++ b/packages/astro/src/integrations/index.ts @@ -104,7 +104,7 @@ export async function runHookConfigSetup({ throw new Error(`Renderer ${bold(renderer.name)} does not provide a serverEntrypoint.`); } - if(renderer.name === 'astro:jsx') { + if (renderer.name === 'astro:jsx') { astroJSXRenderer = renderer; } else { updatedSettings.renderers.push(renderer); @@ -180,7 +180,7 @@ export async function runHookConfigSetup({ } // The astro:jsx renderer should come last, to not interfere with others. - if(astroJSXRenderer) { + if (astroJSXRenderer) { updatedSettings.renderers.push(astroJSXRenderer); } diff --git a/packages/integrations/mdx/test/mdx-plus-react.test.js b/packages/integrations/mdx/test/mdx-plus-react.test.js index 904c58b14..d0f6095c1 100644 --- a/packages/integrations/mdx/test/mdx-plus-react.test.js +++ b/packages/integrations/mdx/test/mdx-plus-react.test.js @@ -5,10 +5,10 @@ import { loadFixture } from '../../../astro/test/test-utils.js'; function hookError() { const error = console.error; const errors = []; - console.error = function(...args) { + console.error = function (...args) { errors.push(args); }; - return () => { + return () => { console.error = error; return errors; };