From bba359903361edf760a886e154682d0d228d242a Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sat, 8 Mar 2025 08:12:48 -0600 Subject: [PATCH] Add --no-errors-on-unmatched to biome ci --- .github/workflows/quality.yml | 2 +- lefthook.yml | 4 ++-- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index c41479f0e0b..7e33a77a73a 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -36,5 +36,5 @@ jobs: - name: eslint # Step to run linters run: npm run eslint-ci - - name: Lint with Biome # Step to run linters and auto-format the code + - name: Lint with Biome # Step to run linters run: npm run biome-ci \ No newline at end of file diff --git a/lefthook.yml b/lefthook.yml index 61df11aa8de..4eff2ad1f8e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -3,7 +3,7 @@ pre-commit: commands: biome-lint: glob: "*.{js,jsx,ts,tsx}" - run: npx @biomejs/biome check --write --reporter=summary + run: npx @biomejs/biome check --write --reporter=summary {staged_files} --no-errors-on-unmatched stage_fixed: true skip: - merge @@ -13,7 +13,7 @@ pre-push: commands: biome-lint: glob: "*.{js,ts,jsx,tsx}" - run: npx @biomejs/biome check --write --reporter=summary + run: npx @biomejs/biome check --write --reporter=summary {push_files} --no-errors-on-unmatched post-merge: commands: diff --git a/package.json b/package.json index 6799bd79c47..ce9e8b4a07b 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "typecheck": "tsc --noEmit", "eslint": "eslint --fix .", "eslint-ci": "eslint .", - "biome": "biome check --write", - "biome-ci": "biome ci --diagnostic-level=error --reporter=github", + "biome": "biome check --write --changed --no-errors-on-unmatched", + "biome-ci": "biome ci --diagnostic-level=error --reporter=github --changed --no-errors-on-unmatched", "docs": "typedoc", "depcruise": "depcruise src", "depcruise:graph": "depcruise src --output-type dot | node dependency-graph.js > dependency-graph.svg",