Skip to content

Commit 4697fdc

Browse files
authored
update prettier (#781)
1 parent bde7fa7 commit 4697fdc

File tree

9 files changed

+29
-21
lines changed

9 files changed

+29
-21
lines changed

.mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
node = "lts"

components/libs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Lib: FC<{ lib: Library }> = ({ lib }) => (
4343
"is-half",
4444
"is-flex",
4545
"tk-lib",
46-
`tk-lib-${lib.id}`
46+
`tk-lib-${lib.id}`,
4747
)}
4848
>
4949
<div className="card">

components/menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function Level2({ href, menu }) {
122122
items.unshift(
123123
<li key={menu.key} className={className}>
124124
<a href={menu.href}>{menu.data.subtitle}</a>
125-
</li>
125+
</li>,
126126
);
127127
}
128128

components/stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const Layer: FC<{ layer: StackLayer }> = ({ layer }) => (
123123
export default function Stack() {
124124
useEffect(() => {
125125
var stack = document.getElementsByClassName(
126-
"tk-stack-active"
126+
"tk-stack-active",
127127
) as HTMLCollectionOf<HTMLElement>;
128128
var links = document.querySelectorAll(".tk-stack .menu li");
129129
var lines = document.getElementById("tk-stack-lines");

lib/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const contentDir = path.join(process.cwd(), "content").replace(/\\/g, "/");
99

1010
// Merge app level props in with page props
1111
export function withAppProps(
12-
props: { props: Record<PropertyKey, unknown> } = { props: {} }
12+
props: { props: Record<PropertyKey, unknown> } = { props: {} },
1313
) {
1414
const blog = getLastBlog();
1515
delete blog.body;
@@ -108,7 +108,7 @@ function setPrevNext(page, menu) {
108108
}
109109
},
110110
undefined,
111-
undefined
111+
undefined,
112112
);
113113

114114
return page;
@@ -117,7 +117,7 @@ function setPrevNext(page, menu) {
117117
// Build a list of paths from the sitemap
118118
function collectPaths(
119119
level: Record<string, { nested?: string[]; href?: string }>,
120-
prefix = ""
120+
prefix = "",
121121
) {
122122
let out = [];
123123

lib/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ export const toHTML = async (raw) => {
8787
.use(rehyperBlockquotePlus, rehyperBlockquotePlusOptions)
8888
// @ts-expect-error: unified's plugin type mistakenly selects the Array<void> union variant
8989
.use(rehypeStringify)
90-
.process(raw)
90+
.process(raw),
9191
);
9292
};

package-lock.json

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"devDependencies": {
3737
"@types/node": "^18.11.18",
3838
"@types/react": "^18.0.26",
39-
"prettier": "^2.8.2",
39+
"prettier": "3.3.3",
4040
"typescript": "^4.9.4"
4141
}
4242
}

styles/styles.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ $tk-lib-tracing: $purple;
2323
$tk-lib-bytes: $blue;
2424

2525
// Per lib styling: [ name, color, size, logo-adjust ]
26-
$libs: "tokio" black 3.8rem -60%, "runtime" $tk-lib-runtime 2.2rem -22%,
27-
"hyper" $tk-lib-hyper 100% -50%, "tonic" $tk-lib-tonic 100% -25%,
28-
"tower" $tk-lib-tower 100% -52%, "mio" $tk-lib-mio 100% -41%,
29-
"tracing" $tk-lib-tracing 100% -31%, "bytes" $tk-lib-bytes 100% -30%;
26+
$libs:
27+
"tokio" black 3.8rem -60%,
28+
"runtime" $tk-lib-runtime 2.2rem -22%,
29+
"hyper" $tk-lib-hyper 100% -50%,
30+
"tonic" $tk-lib-tonic 100% -25%,
31+
"tower" $tk-lib-tower 100% -52%,
32+
"mio" $tk-lib-mio 100% -41%,
33+
"tracing" $tk-lib-tracing 100% -31%,
34+
"bytes" $tk-lib-bytes 100% -30%;
3035

3136
// Bulma color variables
3237
$primary: $cream;

0 commit comments

Comments
 (0)