diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/integrations/react/src | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip |
update formatter config (#11640)
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/react/src')
-rw-r--r-- | packages/integrations/react/src/actions.ts | 4 | ||||
-rw-r--r-- | packages/integrations/react/src/index.ts | 4 |
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') { |