Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

ci: add pre-push hook to prevent TypeScript CI failures

rcourtman4d03319566a0
diff --git a/frontend-modern/.husky/pre-push b/frontend-modern/.husky/pre-push
new file mode 100644
index 0000000000..7eeeada32a
--- /dev/null
+++ b/frontend-modern/.husky/pre-push
@@ -0,0 +1,2 @@
+# TypeScript type-check before push to prevent CI failures
+cd frontend-modern && npm run type-check
diff --git a/frontend-modern/package-lock.json b/frontend-modern/package-lock.json
index e4e4d31dc6..d2139f3c68 100644
--- a/frontend-modern/package-lock.json
+++ b/frontend-modern/package-lock.json
@@ -27,6 +27,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-solid": "^0.14.0",
+ "husky": "^9.1.7",
"jsdom": "^24.1.0",
"postcss": "^8.4.0",
"prettier": "^3.3.0",
@@ -3760,6 +3761,22 @@
"node": ">= 14"
}
},
+ "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/iconv-lite": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
diff --git a/frontend-modern/package.json b/frontend-modern/package.json
index 979fb74ab0..52df41dd02 100644
--- a/frontend-modern/package.json
+++ b/frontend-modern/package.json
@@ -25,7 +25,8 @@
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"",
- "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\""
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\"",
+ "prepare": "husky"
},
"dependencies": {
"@solidjs/router": "^0.10.10",
@@ -46,6 +47,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-solid": "^0.14.0",
+ "husky": "^9.1.7",
"jsdom": "^24.1.0",
"postcss": "^8.4.0",
"prettier": "^3.3.0",