Skip to content

Commit 6a8b325

Browse files
committed
format
1 parent b903d28 commit 6a8b325

Some content is hidden

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

46 files changed

+808
-764
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
# ignore hbs files as prettier removes all spaces and makes it ugly
44
*hbs
5+
docs

.prettierrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"singleQuote": false,
3-
"printWidth": 100,
4-
"tabWidth": 2,
5-
"arrowParens": "avoid",
6-
"jsxBracketSameLine": true,
7-
"bracketSameLine": true
2+
"singleQuote": false,
3+
"printWidth": 120,
4+
"tabWidth": 2,
5+
"arrowParens": "avoid",
6+
"jsxBracketSameLine": true,
7+
"bracketSameLine": true
88
}

examples/nextjs/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ["custom/next"],
2+
extends: ["custom/next"],
33
};

examples/nextjs/app/layout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { SharedRootLayout } from "shared-ui";
55
const inter = Inter({ subsets: ["latin"] });
66

77
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
8-
return (
9-
<html lang="en">
10-
<body>
11-
<NextJsSSGThemeSwitcher />
12-
<SharedRootLayout className={inter.className}>{children}</SharedRootLayout>
13-
</body>
14-
</html>
15-
);
8+
return (
9+
<html lang="en">
10+
<body>
11+
<NextJsSSGThemeSwitcher />
12+
<SharedRootLayout className={inter.className}>{children}</SharedRootLayout>
13+
</body>
14+
</html>
15+
);
1616
}

examples/nextjs/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function Home(): JSX.Element {
2-
return <h1>Next.js Example</h1>;
2+
return <h1>Next.js Example</h1>;
33
}

examples/nextjs/next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
reactStrictMode: true,
3-
transpilePackages: [""],
2+
reactStrictMode: true,
3+
transpilePackages: [""],
44
};

examples/remix/app/root.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,25 @@ import type { LinksFunction } from "@remix-run/node";
33
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react";
44
import { SharedRootLayout } from "shared-ui";
55

6-
export const links: LinksFunction = () => [
7-
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
8-
];
6+
export const links: LinksFunction = () => [...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : [])];
97

108
export default function App() {
11-
return (
12-
<html lang="en">
13-
<head>
14-
<meta charSet="utf-8" />
15-
<meta name="viewport" content="width=device-width, initial-scale=1" />
16-
<Meta />
17-
<Links />
18-
</head>
19-
<body>
20-
<SharedRootLayout>
21-
<Outlet />
22-
</SharedRootLayout>
23-
<ScrollRestoration />
24-
<Scripts />
25-
<LiveReload />
26-
</body>
27-
</html>
28-
);
9+
return (
10+
<html lang="en">
11+
<head>
12+
<meta charSet="utf-8" />
13+
<meta name="viewport" content="width=device-width, initial-scale=1" />
14+
<Meta />
15+
<Links />
16+
</head>
17+
<body>
18+
<SharedRootLayout>
19+
<Outlet />
20+
</SharedRootLayout>
21+
<ScrollRestoration />
22+
<Scripts />
23+
<LiveReload />
24+
</body>
25+
</html>
26+
);
2927
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function Home() {
2-
return <h1>Remix Example</h1>;
2+
return <h1>Remix Example</h1>;
33
}

examples/remix/remix.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/** @type {import('@remix-run/dev').AppConfig} */
22
export default {
3-
ignoredRouteFiles: ["**/.*"],
4-
serverDependenciesToBundle: ["@mayank1513/fork-me", "shared-ui"],
5-
// appDirectory: "app",
6-
// assetsBuildDirectory: "public/build",
7-
// publicPath: "/build/",
8-
// serverBuildPath: "build/index.js",
3+
ignoredRouteFiles: ["**/.*"],
4+
serverDependenciesToBundle: ["@mayank1513/fork-me", "shared-ui"],
5+
// appDirectory: "app",
6+
// assetsBuildDirectory: "public/build",
7+
// publicPath: "/build/",
8+
// serverBuildPath: "build/index.js",
99
};

examples/vite/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function App() {
2-
return <h1>Vite + React + TS Example</h1>;
2+
return <h1>Vite + React + TS Example</h1>;
33
}
44

55
export default App;

0 commit comments

Comments
 (0)