Skip to content

Commit 65ef490

Browse files
committed
chore: switch styling to dprint from biome and add check for style in ci
1 parent 6eb8d0f commit 65ef490

File tree

3 files changed

+45
-33
lines changed

3 files changed

+45
-33
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ permissions:
1212
id-token: write
1313

1414
jobs:
15+
style:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: dprint/check@v2.2
1521
build:
1622
runs-on: ubuntu-latest
1723
steps:

dprint.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"markdown": {},
3+
"biome": {},
4+
"markup": {},
5+
"excludes": ["**/node_modules", "./.astro"],
6+
"plugins": [
7+
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
8+
"https://plugins.dprint.dev/biome-0.7.1.wasm",
9+
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.18.0.wasm"
10+
]
11+
}

package.json

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,29 @@
11
{
2-
"name": "website",
3-
"type": "module",
4-
"version": "0.0.7",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro check && astro build",
9-
"preview": "astro preview",
10-
"astro": "astro",
11-
"fmt": "biome format . --write",
12-
"lint": "biome lint . --apply",
13-
"check": "biome check ."
14-
},
15-
"dependencies": {
16-
"@astrojs/check": "0.8.2",
17-
"@astrojs/react": "3.6.0",
18-
"@astrojs/starlight": "0.25.1",
19-
"@astrojs/starlight-tailwind": "2.0.3",
20-
"@astrojs/tailwind": "5.1.0",
21-
"@types/react": "18.3.3",
22-
"@types/react-dom": "18.3.0",
23-
"astro": "4.12.1",
24-
"react": "18.3.1",
25-
"react-dom": "18.3.1",
26-
"sharp": "0.33.4",
27-
"starlight-blog": "^0.11.0",
28-
"tailwindcss": "3.4.6",
29-
"typescript": "5.5.3"
30-
},
31-
"devDependencies": {
32-
"@biomejs/biome": "1.8.3"
33-
}
34-
}
2+
"name": "website",
3+
"type": "module",
4+
"version": "0.0.7",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"astro": "astro",
11+
"dprint": "dprint"
12+
},
13+
"dependencies": {
14+
"@astrojs/check": "0.8.2",
15+
"@astrojs/react": "3.6.0",
16+
"@astrojs/starlight": "0.25.1",
17+
"@astrojs/starlight-tailwind": "2.0.3",
18+
"@astrojs/tailwind": "5.1.0",
19+
"@types/react": "18.3.3",
20+
"@types/react-dom": "18.3.0",
21+
"astro": "4.12.1",
22+
"react": "18.3.1",
23+
"react-dom": "18.3.1",
24+
"sharp": "0.33.4",
25+
"starlight-blog": "^0.11.0",
26+
"tailwindcss": "3.4.6",
27+
"typescript": "5.5.3"
28+
}
29+
}

0 commit comments

Comments
 (0)