Skip to content

Commit 06e6406

Browse files
ci: apply automated fixes
1 parent 8591fb5 commit 06e6406

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

e2e/solid-start/basic-auth/src/components/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {JSX} from 'solid-js';
1+
import type { JSX } from 'solid-js'
22

33
export function Auth({
44
actionText,

e2e/solid-start/basic-auth/src/hooks/useMutation.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ export function useMutation<TVariables, TData, TError = Error>(opts: {
1313
>('idle')
1414

1515
const mutate = async (variables: TVariables): Promise<TData | undefined> => {
16-
setStatus('pending')
17-
setSubmittedAt(Date.now())
18-
setVariables(variables as any)
19-
//
20-
try {
21-
const data = await opts.fn(variables)
22-
await opts.onSuccess?.({ data })
23-
setStatus('success')
24-
setError(undefined)
25-
setData(data as any)
26-
return data
27-
} catch (err: any) {
28-
setStatus('error')
29-
setError(err)
30-
}
16+
setStatus('pending')
17+
setSubmittedAt(Date.now())
18+
setVariables(variables as any)
19+
//
20+
try {
21+
const data = await opts.fn(variables)
22+
await opts.onSuccess?.({ data })
23+
setStatus('success')
24+
setError(undefined)
25+
setData(data as any)
26+
return data
27+
} catch (err: any) {
28+
setStatus('error')
29+
setError(err)
3130
}
31+
}
3232

3333
return {
3434
status,

e2e/solid-start/basic-auth/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Route = createRootRoute({
4141
head: () => ({
4242
meta: [
4343
{
44-
"charset": 'utf-8',
44+
charset: 'utf-8',
4545
},
4646
{
4747
name: 'viewport',

e2e/solid-start/basic-auth/src/routes/_authed/posts.index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ function PostsIndexComponent() {
77
export const Route = createFileRoute('/_authed/posts/')({
88
component: PostsIndexComponent,
99
})
10-

e2e/solid-start/basic-auth/src/routes/_authed/posts.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@ export const Route = createFileRoute('/_authed/posts')({
3737
loader: () => fetchPosts(),
3838
component: PostsComponent,
3939
})
40-
41-

e2e/solid-start/basic-auth/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export default defineConfig({
99
projects: ['./tsconfig.json'],
1010
}),
1111
tanstackStart(),
12-
viteSolid({ssr: true}),
12+
viteSolid({ ssr: true }),
1313
],
1414
})

0 commit comments

Comments
 (0)