mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
Biome: Pre-commit fix
This commit is contained in:
parent
b76419c6fc
commit
0f3609308e
3 changed files with 221 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue