summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-08-31 15:32:51 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-31 15:32:51 +0000
commitf36bce043ff3137b4178a88fde581e5e3374869d (patch)
tree303e38d2a71e25e0d3245140f5afca4e1ea1895f
parent0752cf3688eaac535ceda1ebcd22ccaf20b2171f (diff)
downloadastro-f36bce043ff3137b4178a88fde581e5e3374869d.tar.gz
astro-f36bce043ff3137b4178a88fde581e5e3374869d.tar.zst
astro-f36bce043ff3137b4178a88fde581e5e3374869d.zip
[ci] format
-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;
};