Skip to content

Commit bd02a1b

Browse files
authored
ci: replace prettier with biome (#16)
Replace the repo's Prettier wiring in pre-commit and quality CI with Biome. Add a minimal `biome.json` for this repo and scope the Biome checks to the JSON files it can actually format here. Verified locally with `pnpm dlx @biomejs/biome@2.4.13 format .` and `pre-commit run --all-files`.
1 parent 0e423d1 commit bd02a1b

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

biome.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": true
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space",
14+
"indentWidth": 2
15+
}
16+
}

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
default = pkgs.mkShell {
2424
packages = [
2525
pkgs.just
26-
pkgs.prettier
26+
pkgs.biome
2727
pkgs.stylua
2828
pkgs.neovim
2929
pkgs.selene
@@ -35,7 +35,7 @@
3535
ci = pkgs.mkShell {
3636
packages = [
3737
pkgs.just
38-
pkgs.prettier
38+
pkgs.biome
3939
pkgs.stylua
4040
pkgs.neovim
4141
pkgs.selene

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default:
44
format:
55
nix fmt -- --ci
66
stylua --check .
7-
prettier --check .
7+
biome format .
88

99
lint:
1010
git ls-files '*.lua' | xargs selene --display-style quiet

0 commit comments

Comments
 (0)