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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

# Dependency directories
vendor/
node_modules/

# Node lockfiles (root dev tooling only — dashboard uses its own)
package-lock.json

# Go workspace file
go.work
Expand Down
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Versions map to GitHub pull requests; the project does not use semver tags yet.

---

## [0.10.0] - 2026-03-24 - PR #11: Husky local DX hooks

### Added

- Root `package.json` with Husky 9, commitlint, lint-staged, and
markdownlint-cli as dev dependencies.
- `.husky/commit-msg` — runs `commitlint` on every local commit, enforcing
the same conventional commit rules already checked in CI. Bad commit
messages are rejected instantly, before any push.
- `.husky/pre-commit` — runs `lint-staged` on staged files. Currently lints
any staged `*.md` files with markdownlint.
- `node_modules/` and root `package-lock.json` added to `.gitignore`.

---

## [0.9.0] - 2026-03-24 - PR #10: Docker build validation on every PR

### Fixed
Expand Down
1 change: 1 addition & 0 deletions PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Items not yet started, ordered roughly by priority.

- [x] Build (no push) Docker images on PRs so broken Dockerfiles are caught
before merge.
- [x] Husky local DX hooks (commit-msg + pre-commit with lint-staged)
- [ ] Replace the `go get` workaround in Dockerfiles with properly committed
`go.mod` / `go.sum` files (requires Go installed in the dev environment
or a CI step that commits updated module files).
Expand Down
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "onchain-health-monitor",
"private": true,
"scripts": {
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"markdownlint-cli": "^0.44.0"
},
"lint-staged": {
"*.md": "markdownlint --ignore node_modules --ignore vendor"
}
}
Loading