Skip to content

Commit 1b736d6

Browse files
chore: format
1 parent 8900ca6 commit 1b736d6

File tree

13 files changed

+33
-36
lines changed

13 files changed

+33
-36
lines changed

__template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
"engines": {
3838
"node": ">=20.0.0"
3939
}
40-
}
40+
}

nprogress/app/root.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export const links: LinksFunction = () => [
1616
{ rel: "stylesheet", href: nProgressStyles },
1717
];
1818

19-
export const meta: MetaFunction = () => ([
20-
{ title: "New Remix App" },
21-
]);
19+
export const meta: MetaFunction = () => [{ title: "New Remix App" }];
2220

2321
export function Layout({ children }: { children: React.ReactNode }) {
2422
return (

nprogress/app/routes/_index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { Link } from "@remix-run/react";
22

33
export default function Index() {
44
return <Link to="/slow-page">Slow Page</Link>;
5-
}
5+
}

nprogress/app/routes/slow-page.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { json } from "@remix-run/node";
2-
import { Link } from "@remix-run/react";
3-
4-
export const loader = async () => {
5-
await new Promise((resolve) => setTimeout(resolve, 1000));
6-
return json({});
7-
};
8-
9-
export default function Screen() {
10-
return <Link to="/">Home</Link>;
11-
}
1+
import { json } from "@remix-run/node";
2+
import { Link } from "@remix-run/react";
3+
4+
export const loader = async () => {
5+
await new Promise((resolve) => setTimeout(resolve, 1000));
6+
return json({});
7+
};
8+
9+
export default function Screen() {
10+
return <Link to="/">Home</Link>;
11+
}

nprogress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
"engines": {
4040
"node": ">=18.0.0"
4141
}
42-
}
42+
}

sass/app/styles/global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$font-stack: system-ui, sans-serif;
2-
$primary-color: #D90000;
2+
$primary-color: #d90000;
33
$line-height: 1.8;
44

55
:root {

sass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"engines": {
3939
"node": ">=20.0.0"
4040
}
41-
}
41+
}

socket.io/app/root.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export default function App() {
4848
}, [socket]);
4949

5050
return (
51-
<SocketProvider socket={socket}>
52-
<Outlet />
53-
</SocketProvider>);
51+
<SocketProvider socket={socket}>
52+
<Outlet />
53+
</SocketProvider>
54+
);
5455
}

socket.io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646
"engines": {
4747
"node": ">=20.0.0"
4848
}
49-
}
49+
}

socket.io/server.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const viteDevServer =
1212
: await import("vite").then((vite) =>
1313
vite.createServer({
1414
server: { middlewareMode: true },
15-
})
15+
}),
1616
);
1717

1818
const remixHandler = createRequestHandler({
@@ -43,7 +43,6 @@ io.on("connection", (socket) => {
4343
});
4444
});
4545

46-
4746
app.use(compression());
4847

4948
// http://expressjs.com/en/advanced/best-practice-security.html#at-a-minimum-disable-x-powered-by-header
@@ -56,7 +55,7 @@ if (viteDevServer) {
5655
// Vite fingerprints its assets so we can cache forever.
5756
app.use(
5857
"/assets",
59-
express.static("build/client/assets", { immutable: true, maxAge: "1y" })
58+
express.static("build/client/assets", { immutable: true, maxAge: "1y" }),
6059
);
6160
}
6261

@@ -73,6 +72,5 @@ const port = process.env.PORT || 3000;
7372

7473
// instead of running listen on the Express app, do it on the HTTP server
7574
httpServer.listen(port, () => {
76-
console.log(`Express server listening at http://localhost:${port}`)
75+
console.log(`Express server listening at http://localhost:${port}`);
7776
});
78-

0 commit comments

Comments
 (0)