summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/integrations/index.ts4
-rw-r--r--packages/integrations/mdx/test/mdx-plus-react.test.js4
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;
};