Skip to content

Commit c8c815c

Browse files
author
Mohammod Al Amin Ashik
committed
ci: Add pnpm lint to pre-commit hooks
- Add lint check to both bash and PowerShell hooks - Update validate script to include lint - Update documentation to reflect lint check Now pre-commit validation fully matches CI requirements: cargo fmt, clippy, check, lint, typecheck
1 parent 930d08d commit c8c815c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/GIT_HOOKS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The pre-commit hook automatically runs before each commit to validate:
1313
- Automatically adds formatted files to the commit
1414

1515
### **TypeScript Validation**
16+
- Runs `pnpm lint` to check code style and catch common errors
1617
- Runs `pnpm typecheck` to verify type correctness
1718
- Checks all TypeScript files in the workspace
1819

@@ -45,6 +46,7 @@ pnpm validate
4546
# Or individually
4647
cargo clippy --workspace -- -D warnings
4748
cargo check --workspace
49+
pnpm lint
4850
pnpm typecheck
4951
```
5052

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"format": "prettier --write . && cargo fmt --all",
3232
"format:check": "prettier --check . && cargo fmt --all --check",
3333
"typecheck": "pnpm -r typecheck",
34-
"validate": "cargo fmt --all && cargo clippy --workspace -- -D warnings && cargo check --workspace && pnpm typecheck",
34+
"validate": "cargo fmt --all && cargo clippy --workspace -- -D warnings && cargo check --workspace && pnpm lint && pnpm typecheck",
3535
"clean": "pnpm -r clean && cargo clean"
3636
},
3737
"devDependencies": {

0 commit comments

Comments
 (0)