Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ repos:
# TypeScript/JavaScript formatting and linting
- repo: local
hooks:
- id: biome-check
name: Biome Lint
entry: pnpm exec biome lint --write --no-errors-on-unmatched --
language: system
files: \.(ts|tsx|js|jsx)$

- id: prettier
name: Prettier
entry: pnpm prettier --write
entry: pnpm exec prettier --write --
language: system
files: \.(ts|tsx|js|jsx|json|md|yaml|yml)$
pass_filenames: true

- id: biome-check
name: Biome Check
entry: pnpm biome check --apply
language: system
files: \.(ts|tsx|js|jsx)$
pass_filenames: false

# TypeScript check temporarily disabled due to vendor compilation issues
# - id: typescript-check
# name: TypeScript Check
Expand All @@ -48,7 +47,7 @@ repos:
hooks:
- id: cargo-fmt-services
name: Cargo Format (Services Workspace)
entry: bash -c 'cd services && cargo fmt'
entry: bash -c 'cd services && cargo fmt --check'
language: system
files: services/.*\.rs$
pass_filenames: false
Expand All @@ -62,7 +61,7 @@ repos:

- id: cargo-fmt-apps
name: Cargo Format (Apps)
entry: bash -c 'for dir in apps/*/; do if [ -f "$dir/Cargo.toml" ]; then cd "$dir" && cargo fmt && cd ../..; fi; done'
entry: bash -c 'for dir in apps/*/; do if [ -f "$dir/Cargo.toml" ]; then (cd "$dir" && cargo fmt --check) || exit 1; fi; done'
language: system
files: apps/.*\.rs$
pass_filenames: false
Expand Down
10 changes: 10 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": ["**", "!!vendor", "!!lexicons/{app,chat,com,tools}"]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"rust:clippy:services": "cd services && cargo clippy -- -D warnings",
"rust:fmt:apps": "for dir in apps/*/; do if [ -f \"$dir/Cargo.toml\" ]; then echo \"Formatting $dir\" && cd \"$dir\" && cargo fmt && cd ../..; fi; done",
"rust:clippy:apps": "for dir in apps/*/; do if [ -f \"$dir/Cargo.toml\" ]; then echo \"Linting $dir\" && cd \"$dir\" && cargo clippy -- -D warnings && cd ../..; fi; done",
"fix": "biome lint --apply . && biome format --write . && biome check . --apply",
"fix": "biome lint --write",
"hooks:install": "./scripts/install-git-hooks.sh",
"hooks:install-precommit": "pre-commit install",
"postinstall": "pnpm lex:gen-server",
Expand Down Expand Up @@ -46,10 +46,10 @@
"prettier-plugin-tailwindcss": "^0.6.11"
},
"devDependencies": {
"@biomejs/biome": "2.6.8",
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^20.17.10",
"better-sqlite3": "^12.5.0",
"biome": "^0.3.3",
"dotenv": "^16.4.7",
"rimraf": "^6.0.1",
"tsx": "^4.19.2",
Expand Down
Loading
Loading