aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react/src')
-rw-r--r--packages/integrations/react/src/actions.ts4
-rw-r--r--packages/integrations/react/src/index.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/react/src/actions.ts b/packages/integrations/react/src/actions.ts
index bc45e28ee..a5ccb2f9a 100644
--- a/packages/integrations/react/src/actions.ts
+++ b/packages/integrations/react/src/actions.ts
@@ -51,7 +51,7 @@ export async function experimental_getActionState<T>({
if (!contentType || !isFormRequest(contentType)) {
throw new AstroError(
'`getActionState()` must be called with a form request.',
- "Ensure your action uses the `accept: 'form'` option."
+ "Ensure your action uses the `accept: 'form'` option.",
);
}
const formData = await request.clone().formData();
@@ -59,7 +59,7 @@ export async function experimental_getActionState<T>({
if (!state) {
throw new AstroError(
'`getActionState()` could not find a state object.',
- 'Ensure your action was passed to `useActionState()` with the `experimental_withState()` wrapper.'
+ 'Ensure your action was passed to `useActionState()` with the `experimental_withState()` wrapper.',
);
}
return JSON.parse(state) as T;
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index f8a9c4ab2..49cb0e6f7 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -50,7 +50,7 @@ function optionsPlugin(experimentalReactChildren: boolean): vite.Plugin {
function getViteConfiguration(
{ include, exclude, babel, experimentalReactChildren }: ReactIntegrationOptions = {},
- reactConfig: ReactVersionConfig
+ reactConfig: ReactVersionConfig,
) {
return {
optimizeDeps: {
@@ -101,7 +101,7 @@ export default function ({
updateConfig({
vite: getViteConfiguration(
{ include, exclude, babel, experimentalReactChildren },
- versionConfig
+ versionConfig,
),
});
if (command === 'dev') {