Skip to content

Commit 47f4f4e

Browse files
committed
chore: fix formatting to use tabs consistently
Apply Biome formatting to recently modified files to ensure consistent tab indentation across the codebase.
1 parent d0e1acc commit 47f4f4e

File tree

5 files changed

+1212
-1212
lines changed

5 files changed

+1212
-1212
lines changed

example/biome.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
6-
"linter": {
7-
"enabled": true,
8-
"rules": {
9-
"recommended": true
10-
}
11-
},
12-
"formatter": {
13-
"enabled": true,
14-
"formatWithErrors": false,
15-
"indentStyle": "tab",
16-
"indentWidth": 2,
17-
"lineEnding": "lf",
18-
"lineWidth": 80
19-
},
20-
"javascript": {
21-
"formatter": {
22-
"quoteStyle": "double",
23-
"jsxQuoteStyle": "double",
24-
"trailingCommas": "all",
25-
"semicolons": "always",
26-
"arrowParentheses": "always"
27-
}
28-
},
29-
"files": {
30-
"ignore": ["node_modules", "public"]
31-
}
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true
10+
}
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"formatWithErrors": false,
15+
"indentStyle": "tab",
16+
"indentWidth": 2,
17+
"lineEnding": "lf",
18+
"lineWidth": 80
19+
},
20+
"javascript": {
21+
"formatter": {
22+
"quoteStyle": "double",
23+
"jsxQuoteStyle": "double",
24+
"trailingCommas": "all",
25+
"semicolons": "always",
26+
"arrowParentheses": "always"
27+
}
28+
},
29+
"files": {
30+
"ignore": ["node_modules", "public"]
31+
}
3232
}

example/src/server.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ import { Elysia } from "elysia";
33
const PORT = Number(process.env.PORT) || 3000;
44

55
const app = new Elysia()
6-
.get("/app.js", () => {
7-
const file = Bun.file("./public/app.js");
8-
return new Response(file, {
9-
headers: {
10-
"Content-Type": "application/javascript; charset=utf-8",
11-
"Cache-Control": "public, max-age=3600",
12-
},
13-
});
14-
})
15-
.get("/", () => {
16-
const file = Bun.file("./src/templates/index.html");
17-
const headers: Record<string, string> = {
18-
"Content-Type": "text/html",
19-
};
6+
.get("/app.js", () => {
7+
const file = Bun.file("./public/app.js");
8+
return new Response(file, {
9+
headers: {
10+
"Content-Type": "application/javascript; charset=utf-8",
11+
"Cache-Control": "public, max-age=3600",
12+
},
13+
});
14+
})
15+
.get("/", () => {
16+
const file = Bun.file("./src/templates/index.html");
17+
const headers: Record<string, string> = {
18+
"Content-Type": "text/html",
19+
};
2020

21-
// Add caching in production
22-
if (process.env.NODE_ENV === "production") {
23-
headers["Cache-Control"] = "public, max-age=3600";
24-
}
21+
// Add caching in production
22+
if (process.env.NODE_ENV === "production") {
23+
headers["Cache-Control"] = "public, max-age=3600";
24+
}
2525

26-
return new Response(file, { headers });
27-
})
28-
.listen(PORT);
26+
return new Response(file, { headers });
27+
})
28+
.listen(PORT);
2929

3030
console.log(
31-
`🚀 MiniReact Showcase running at http://${app.server?.hostname}:${app.server?.port}`
31+
`🚀 MiniReact Showcase running at http://${app.server?.hostname}:${app.server?.port}`,
3232
);

0 commit comments

Comments
 (0)