Biome: Pre-commit fix

This commit is contained in:
Utkarsh-Patel-13 2025-07-27 12:20:35 -07:00
parent b76419c6fc
commit 0f3609308e
3 changed files with 221 additions and 5 deletions

View file

@ -60,6 +60,29 @@ repos:
args: ['-f', 'json', '--severity-level', 'high', '--confidence-level', 'high']
exclude: ^surfsense_backend/(tests/|test_.*\.py|.*test.*\.py|alembic/)
# Biome hooks for TypeScript/JavaScript projects
- repo: local
hooks:
# Biome check for surfsense_web
- id: biome-check-web
name: biome-check-web
entry: bash -c 'cd surfsense_web && npx @biomejs/biome check --diagnostic-level=error .'
language: system
files: ^surfsense_web/
pass_filenames: false
always_run: true
stages: [pre-commit]
# Biome check for surfsense_browser_extension
- id: biome-check-extension
name: biome-check-extension
entry: bash -c 'cd surfsense_browser_extension && npx @biomejs/biome check --diagnostic-level=error .'
language: system
files: ^surfsense_browser_extension/
pass_filenames: false
always_run: true
stages: [pre-commit]
# Commit message linting
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.8.3