From 5b834b126c506f918628a703d6a4dcc75616c77d Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Wed, 3 Jun 2026 01:48:02 -0700 Subject: [PATCH] Set defaultBranch for `biome lint --changed` --- .tangled/workflows/lint.yml | 4 ++-- biome.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.tangled/workflows/lint.yml b/.tangled/workflows/lint.yml index 77c5b15..f7e2c43 100644 --- a/.tangled/workflows/lint.yml +++ b/.tangled/workflows/lint.yml @@ -17,6 +17,6 @@ steps: - name: "Install dependencies" command: "bun install" - name: "Lint check" - command: "cd packages/cli && biome lint" + command: "cd packages/cli && biome lint --changed --no-errors-on-unmatched" - name: "Format check" - command: "cd packages/cli && biome format" + command: "cd packages/cli && biome format --changed --no-errors-on-unmatched" diff --git a/biome.json b/biome.json index 47f7ed5..abb2b11 100644 --- a/biome.json +++ b/biome.json @@ -2,6 +2,7 @@ "$schema": "https://biomejs.dev/schemas/2.3.6/schema.json", "root": true, "vcs": { + "defaultBranch": "main", "enabled": true, "clientKind": "git", "useIgnoreFile": true @@ -37,4 +38,4 @@ } } } -} \ No newline at end of file +} -- 2.51.2