Skip to content

Commit f22e78a

Browse files
chore: format
1 parent 72d282a commit f22e78a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/modules/gh-docs/.server/compat-tokens.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function createCompatList(
2828
</ul>
2929
`
3030
.split("\n")
31-
.map(line => line.replace(/^\s+/, ""))
31+
.map((line) => line.replace(/^\s+/, ""))
3232
.filter(Boolean)
3333
.join("");
3434

@@ -53,7 +53,7 @@ function createSmallCompatList(
5353
</ul>
5454
`
5555
.split("\n")
56-
.map(line => line.replace(/^\s+/, ""))
56+
.map((line) => line.replace(/^\s+/, ""))
5757
.filter(Boolean)
5858
.join("");
5959

@@ -66,7 +66,7 @@ const MODES_SMALL_REGEX = /^\[modes:\s*([^\]]+)\]$/;
6666
const remarkCompatLists: Plugin<[CompatOptions?], Root> = () => {
6767
const baseUrl = "../../start/modes";
6868

69-
return tree => {
69+
return (tree) => {
7070
visit(tree, "paragraph", (node, index, parent) => {
7171
if (!parent || typeof index === "undefined" || node.children.length !== 1)
7272
return;
@@ -81,7 +81,7 @@ const remarkCompatLists: Plugin<[CompatOptions?], Root> = () => {
8181
if (matchBig || matchSmall) {
8282
const modes = (matchBig || matchSmall)![1]
8383
.split(",")
84-
.map(mode => mode.trim())
84+
.map((mode) => mode.trim())
8585
.filter(Boolean);
8686

8787
const compatList = matchBig

app/modules/gh-docs/.server/md.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export async function loadPlugins() {
107107
const remarkCodeBlocksShiki: InternalPlugin<
108108
UnistNode.Root,
109109
UnistNode.Root
110-
> = options => {
110+
> = (options) => {
111111
let theme: Awaited<ReturnType<typeof toShikiTheme>>;
112112
let highlighter: Awaited<ReturnType<typeof getHighlighter>>;
113113

@@ -134,7 +134,7 @@ export async function loadPlugins() {
134134
let langSet = new Set(langs);
135135
let transformTasks: Array<() => Promise<void>> = [];
136136

137-
visit(tree, "code", node => {
137+
visit(tree, "code", (node) => {
138138
if (
139139
!node.lang ||
140140
!node.value ||
@@ -294,7 +294,7 @@ export async function loadPlugins() {
294294
}
295295
});
296296

297-
await Promise.all(transformTasks.map(exec => exec()));
297+
await Promise.all(transformTasks.map((exec) => exec()));
298298

299299
function getThemedTokens({
300300
code,

0 commit comments

Comments
 (0)