Skip to content

Commit c79a6c6

Browse files
committed
reformat
1 parent 4bd254f commit c79a6c6

104 files changed

Lines changed: 500 additions & 500 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/fixtures/bare/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { solidStart } from "../../../packages/start/src/config";
33
import { nitroV2Plugin } from "../../../packages/start-nitro-v2-vite-plugin/src";
44

55
export default defineConfig({
6-
plugins: [solidStart(), nitroV2Plugin()]
6+
plugins: [solidStart(), nitroV2Plugin()],
77
});

apps/fixtures/basic/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { solidStart } from "../../../packages/start/src/config";
33
import { nitroV2Plugin } from "../../../packages/start-nitro-v2-vite-plugin/src";
44

55
export default defineConfig({
6-
plugins: [solidStart(), nitroV2Plugin()]
6+
plugins: [solidStart(), nitroV2Plugin()],
77
});

apps/fixtures/css/src/components/test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const integrations = {
66
import: "import",
77
module: "import module",
88
url: "?url without render",
9-
link: "?url + <link>"
9+
link: "?url + <link>",
1010
};
1111
const Test = (props: {
1212
invert?: boolean;
@@ -23,7 +23,7 @@ const Test = (props: {
2323
"grid grid-cols-subgrid col-span-full items-center rounded text-white font-medium py-1 px-2 border-4 transition-colors duration-[1.5s]",
2424
props.invert ? "bg-success" : "bg-error",
2525
props.noSupport ? "border-warn" : "border-transparent",
26-
props.class
26+
props.class,
2727
)}
2828
>
2929
<div>{props.component}</div>

apps/fixtures/css/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import { nitroV2Plugin } from "../../../packages/start-nitro-v2-vite-plugin/src"
44
import { solidStart } from "../../../packages/start/src/config";
55

66
export default defineConfig({
7-
plugins: [solidStart(), nitroV2Plugin(), tailwindcss()]
7+
plugins: [solidStart(), nitroV2Plugin(), tailwindcss()],
88
});

apps/fixtures/experiments/src/middleware.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ export default createMiddleware({
88
console.log("REQUEST", event.request.url);
99
console.log(
1010
"SEARCH PARAM KEYS FROM ASYNC CONTEXT",
11-
Array.from(getRequestURL().searchParams.keys())
11+
Array.from(getRequestURL().searchParams.keys()),
1212
);
13-
}
13+
},
1414
],
1515
onBeforeResponse: [
1616
(event, { body }) => {
1717
console.log("BEFORE RESPONSE", body);
18-
}
19-
]
18+
},
19+
],
2020
});

apps/fixtures/experiments/src/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const hello = GET(async (name: string) => {
1313
console.log("ID", id, e.locals.foo);
1414
return json(
1515
{ hello: new Promise<string>(r => setTimeout(() => r(name), 1000)) },
16-
{ headers: { "cache-control": "max-age=60" } }
16+
{ headers: { "cache-control": "max-age=60" } },
1717
);
1818
});
1919

@@ -24,7 +24,7 @@ export default function Home() {
2424
});
2525
const port = isServer ? new URL(getRequestEvent()!.request.url).port : location.port;
2626
fetch(`http://localhost:${port}${import.meta.env.BASE_URL}/unknown`, {
27-
headers: { Accept: "application/json" }
27+
headers: { Accept: "application/json" },
2828
}).then(async res => console.log(await res.json()));
2929
return (
3030
<main>

apps/fixtures/experiments/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { solidStart } from "../../../packages/start/src/config";
33
import { nitroV2Plugin } from "../../../packages/start-nitro-v2-vite-plugin/src";
44

55
export default defineConfig({
6-
plugins: [solidStart({ middleware: "./src/middleware.ts" }), nitroV2Plugin()]
6+
plugins: [solidStart({ middleware: "./src/middleware.ts" }), nitroV2Plugin()],
77
});

apps/fixtures/hackernews/public/sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ self.addEventListener("fetch", e => {
66
.then(t =>
77
t
88
.match(e.request)
9-
.then(n => n || fetch(e.request).then(n => (t.put(e.request, n.clone()), n)))
10-
)
9+
.then(n => n || fetch(e.request).then(n => (t.put(e.request, n.clone()), n))),
10+
),
1111
);
1212
});
1313

apps/fixtures/hackernews/src/lib/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ const mapStories = {
3131
new: "newest",
3232
show: "show",
3333
ask: "ask",
34-
job: "jobs"
34+
job: "jobs",
3535
} as const;
3636

3737
export const getStories = query(
3838
async (type: StoryTypes, page: number): Promise<StoryDefinition[]> => {
3939
"use server";
4040
return fetchAPI(`${mapStories[type]}?page=${page}`);
4141
},
42-
"stories"
42+
"stories",
4343
);
4444

4545
export const getStory = query(async (id: string): Promise<StoryDefinition> => {

apps/fixtures/hackernews/src/routes/[...stories].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { StoryTypes } from "~/types";
77
export const route = {
88
preload({ location, params }) {
99
void getStories((params.stories as StoryTypes) || "top", +location.query.page || 1);
10-
}
10+
},
1111
} satisfies RouteDefinition;
1212

1313
export default function Stories(props: RouteSectionProps) {

0 commit comments

Comments
 (0)