Add --no-errors-on-unmatched to biome ci

This commit is contained in:
Sirz Benjie 2025-03-08 08:12:48 -06:00
parent 41f6d0ce88
commit bba3599033
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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:

View File

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