chore: add husky and format:fix script (#535)

* chore: add husky and format:fix script

* docs: initialize empty CHANGELOG.md

Placeholder — release notes will be populated at merge time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gabi Simons
2026-02-27 00:14:18 +02:00
committed by GitHub
parent da61a7ea7b
commit a6a117896c
4 changed files with 24 additions and 0 deletions

1
.husky/pre-commit Normal file
View File

@@ -0,0 +1 @@
npm run format:fix

3
CHANGELOG.md Normal file
View File

@@ -0,0 +1,3 @@
# Changelog
All notable changes to NanoClaw will be documented in this file.

17
package-lock.json generated
View File

@@ -23,6 +23,7 @@
"@types/node": "^22.10.0",
"@types/qrcode-terminal": "^0.12.2",
"@vitest/coverage-v8": "^4.0.18",
"husky": "^9.1.7",
"prettier": "^3.8.1",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
@@ -2377,6 +2378,22 @@
"dev": true,
"license": "MIT"
},
"node_modules/husky": {
"version": "9.1.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz",
"integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
"dev": true,
"license": "MIT",
"bin": {
"husky": "bin.js"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",

View File

@@ -11,7 +11,9 @@
"auth": "tsx src/whatsapp-auth.ts",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\"",
"format:fix": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"prepare": "husky",
"setup": "tsx setup/index.ts",
"test": "vitest run",
"test:watch": "vitest"
@@ -32,6 +34,7 @@
"@types/node": "^22.10.0",
"@types/qrcode-terminal": "^0.12.2",
"@vitest/coverage-v8": "^4.0.18",
"husky": "^9.1.7",
"prettier": "^3.8.1",
"tsx": "^4.19.0",
"typescript": "^5.7.0",