Skip to content

Commit 6866bca

Browse files
committed
Add biome formatting for js and css (#29)
1 parent cc16517 commit 6866bca

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.github/workflows/ci.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ jobs:
1919
uses: astral-sh/ruff-action@v2
2020
with:
2121
args: "format --check"
22+
23+
- name: Setup Biome
24+
uses: biomejs/setup-biome@v2
25+
with:
26+
version: latest
27+
28+
- name: Run Biome
29+
run: biome ci .

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
format:
22
ruff format
3+
npx @biomejs/biome format --write
34

45
lint:
56
ruff check
7+
npx @biomejs/biome check
68

79
lint-fix:
810
ruff check --fix
11+
npx @biomejs/biome check --fix

biome.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": true,
10+
"ignore": [],
11+
"include": [
12+
"media/commitfest/js/commitfest.js",
13+
"media/commitfest/css/commitfest.css",
14+
"biome.json"
15+
]
16+
},
17+
"formatter": {
18+
"enabled": true,
19+
"indentStyle": "space",
20+
"indentWidth": 4
21+
},
22+
"organizeImports": {
23+
"enabled": true
24+
},
25+
"linter": {
26+
"enabled": true,
27+
"rules": {
28+
"recommended": true
29+
}
30+
},
31+
"javascript": {
32+
"formatter": {
33+
"quoteStyle": "double"
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)