From 9e0956e30e1216f8c2978572344dffd018a65482 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 25 Apr 2026 15:56:55 -0400 Subject: [PATCH] ci: replace prettier with biome Switch the repo's formatting automation from Prettier to Biome so this plugin matches the remaining formatter migration work, while keeping the checks scoped to the JSON files Biome can actually handle here. --- biome.json | 16 ++++++++++++++++ flake.nix | 4 ++-- justfile | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 biome.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..cd6e445 --- /dev/null +++ b/biome.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.4.13/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": true + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2 + } +} diff --git a/flake.nix b/flake.nix index 43b5861..74702cd 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ default = pkgs.mkShell { packages = [ pkgs.just - pkgs.prettier + pkgs.biome pkgs.stylua pkgs.neovim pkgs.selene @@ -35,7 +35,7 @@ ci = pkgs.mkShell { packages = [ pkgs.just - pkgs.prettier + pkgs.biome pkgs.stylua pkgs.neovim pkgs.selene diff --git a/justfile b/justfile index 0f49266..bdb7dcb 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ default: format: nix fmt -- --ci stylua --check . - prettier --check . + biome format . lint: git ls-files '*.lua' | xargs selene --display-style quiet