Skip to content

Commit 04ba2d5

Browse files
committed
ci: add code quality check to GitHub Actions
1 parent d8d0563 commit 04ba2d5

File tree

4 files changed

+114
-94
lines changed

4 files changed

+114
-94
lines changed

.github/workflows/code-quality.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Code quality
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
quality:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
17+
- name: Setup Biome
18+
uses: biomejs/setup-biome@v2
19+
with:
20+
version: latest
21+
- name: Run Biome
22+
run: biome ci .

biome.json

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,54 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
3-
"vcs": {
4-
"enabled": false,
5-
"clientKind": "git",
6-
"useIgnoreFile": false
7-
},
8-
"files": {
9-
"ignoreUnknown": false
10-
},
11-
"formatter": {
12-
"enabled": true,
13-
"indentStyle": "space"
14-
},
15-
"linter": {
16-
"enabled": true,
17-
"rules": {
18-
"recommended": true,
19-
"correctness": {
20-
"noUnusedImports": "off"
21-
}
22-
}
23-
},
24-
"javascript": {
25-
"formatter": {
26-
"quoteStyle": "double"
27-
}
28-
},
29-
"assist": {
30-
"enabled": true,
31-
"actions": {
32-
"source": {
33-
"organizeImports": "on"
34-
}
35-
}
36-
},
37-
"overrides": [
38-
{
39-
"includes": [
40-
"**/*.astro"
41-
],
42-
"linter": {
43-
"rules": {
44-
"style": {
45-
"useConst": "off",
46-
"useImportType": "off"
47-
},
48-
"correctness": {
49-
"noUnusedVariables": "off",
50-
"noUnusedImports": "off"
51-
}
52-
}
53-
}
54-
}
55-
]
56-
}
2+
"$schema": "https://biomejs.dev/schemas/2.3.9/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true,
19+
"correctness": {
20+
"noUnusedImports": "off"
21+
}
22+
}
23+
},
24+
"javascript": {
25+
"formatter": {
26+
"quoteStyle": "double"
27+
}
28+
},
29+
"assist": {
30+
"enabled": true,
31+
"actions": {
32+
"source": {
33+
"organizeImports": "on"
34+
}
35+
}
36+
},
37+
"overrides": [
38+
{
39+
"includes": ["**/*.astro"],
40+
"linter": {
41+
"rules": {
42+
"style": {
43+
"useConst": "off",
44+
"useImportType": "off"
45+
},
46+
"correctness": {
47+
"noUnusedVariables": "off",
48+
"noUnusedImports": "off"
49+
}
50+
}
51+
}
52+
}
53+
]
54+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"changeset": "changeset"
1212
},
1313
"devDependencies": {
14-
"@biomejs/biome": "2.3.8",
14+
"@biomejs/biome": "2.3.9",
1515
"@changesets/changelog-github": "^0.5.2",
1616
"@changesets/cli": "^2.29.8",
1717
"@tailwindcss/postcss": "^4.1.17",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)