Skip to content

Commit f11412e

Browse files
committed
feat: Add oxfmt
1 parent a3e0324 commit f11412e

4 files changed

Lines changed: 56 additions & 10 deletions

File tree

astro.config.mjs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export default defineConfig({
3131
sidebar: [
3232
{
3333
label: "Welcome",
34-
items: [
35-
{ label: "Introduction", slug: "index" }
36-
],
34+
items: [{ label: "Introduction", slug: "index" }],
3735
},
3836
{
3937
label: "Reference",
@@ -58,11 +56,9 @@ export default defineConfig({
5856
{ label: "General Guidelines", slug: "contributing/guidelines" },
5957
{
6058
label: "Special Guidelines",
61-
items: [
62-
"contributing/appstream"
63-
],
59+
items: ["contributing/appstream"],
6460
},
65-
],
61+
],
6662
},
6763
],
6864
},
@@ -73,7 +69,7 @@ export default defineConfig({
7369
icon(),
7470
react(),
7571
mdx({
76-
syntaxHighlight: 'shiki',
72+
syntaxHighlight: "shiki",
7773
shikiConfig: {
7874
langs: [
7975
{ ...RPMSpec, aliases: ["rpmspec"] },
@@ -83,7 +79,6 @@ export default defineConfig({
8379
}),
8480
],
8581

86-
8782
vite: {
8883
plugins: [tailwindcss()],
8984
},

bun.lock

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

oxfmt.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from "oxfmt";
2+
3+
export default defineConfig({
4+
ignorePatterns: ["*.mdx"],
5+
});

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"build": "astro build",
1010
"preview": "astro preview",
1111
"astro": "astro",
12-
"generate-types": "wrangler types"
12+
"generate-types": "wrangler types",
13+
"fmt": "oxfmt",
14+
"fmt:check": "oxfmt --check"
1315
},
1416
"repository": {
1517
"type": "git",
@@ -45,6 +47,7 @@
4547
"vite": "^7"
4648
},
4749
"devDependencies": {
50+
"oxfmt": "^0.46.0",
4851
"typescript": "^6.0.3"
4952
}
5053
}

0 commit comments

Comments
 (0)