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",