Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(desktop): remove dead husky pre-commit setup (#82383)

Charles Vien067be6fcf185
diff --git a/products/desktop/.husky/pre-commit b/products/desktop/.husky/pre-commit
deleted file mode 100755
index b4de2afdf5c0..000000000000
--- a/products/desktop/.husky/pre-commit
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-pnpm lint-staged
diff --git a/products/desktop/apps/code/package.json b/products/desktop/apps/code/package.json
index a5d4dcf0e519..48b7dd689340 100644
--- a/products/desktop/apps/code/package.json
+++ b/products/desktop/apps/code/package.json
@@ -69,11 +69,9 @@
"electron-builder": "^26.15.3",
"electron-vite": "^4.0.1",
"http-server": "^14.1.1",
- "husky": "^9.1.7",
"jest-image-snapshot": "^6.5.2",
"jimp": "^1.6.1",
"jsdom": "^26.0.0",
- "lint-staged": "^15.5.2",
"memfs": "^4.57.3",
"mockdate": "^3.0.5",
"pathe": "^2.0.3",
diff --git a/products/desktop/package.json b/products/desktop/package.json
index 44f6f4f879f0..4b476d3caea4 100644
--- a/products/desktop/package.json
+++ b/products/desktop/package.json
@@ -11,7 +11,6 @@
"preinstall": "node scripts/enforce-pnpm.mjs",
"postinstall": "bash scripts/ensure-phrocs.sh --update",
"bootstrap:cloud-task": "pnpm install --frozen-lockfile --prefer-offline --ignore-scripts && pnpm build:deps",
- "prepare": "husky",
"dev": "pnpm build:deps && bash scripts/ensure-phrocs.sh && bin/phrocs --config mprocs.yaml",
"dev:mprocs": "pnpm build:deps && mprocs",
"dev:agent": "pnpm --filter agent dev",
@@ -53,13 +52,12 @@
"@biomejs/biome": "2.2.4",
"@posthog/cli": "^0.8.2",
"fflate": "^0.8.2",
- "husky": "^9.1.7",
"knip": "^5.66.3",
- "lint-staged": "^15.5.2",
"mprocs": "^0.7.1",
"turbo": "^2.9.16"
},
"lint-staged": {
+ "*.{mjs,json,jsonc,css}": "biome check --write --unsafe --files-ignore-unknown=true --no-errors-on-unmatched",
"*.{ts,tsx,js,jsx}": [
"biome check --write --unsafe --files-ignore-unknown=true --no-errors-on-unmatched",
"bash -c 'pnpm typecheck'"
diff --git a/products/desktop/pnpm-lock.yaml b/products/desktop/pnpm-lock.yaml
index 141f18bb9452..82c62dcb0919 100644
--- a/products/desktop/pnpm-lock.yaml
+++ b/products/desktop/pnpm-lock.yaml
@@ -129,15 +129,9 @@ importers:
fflate:
specifier: ^0.8.2
version: 0.8.2
- husky:
- specifier: ^9.1.7
- version: 9.1.7
knip:
specifier: ^5.66.3
version: 5.83.0(@types/[email protected])([email protected])
- lint-staged:
- specifier: ^15.5.2
- version: 15.5.2
mprocs:
specifier: ^0.7.1
version: 0.7.3
@@ -430,9 +424,6 @@ importers:
http-server:
specifier: ^14.1.1
version: 14.1.1
- husky:
- specifier: ^9.1.7
- version: 9.1.7
jest-image-snapshot:
specifier: ^6.5.2
@@ -442,9 +433,6 @@ importers:
jsdom:
specifier: ^26.0.0
version: 26.1.0
- lint-staged:
- specifier: ^15.5.2
- version: 15.5.2
memfs:
specifier: ^4.57.3
version: 4.57.7([email protected])
@@ -11818,11 +11806,6 @@ packages:
resolution: {integrity: sha512-E0eIbrFWUhwfXJmsbdjRQFQPrl5pTEoKlz163j1mTqqUnU9PgR4AgB8AIITzuB3vLBdxZXyZ9TDIrwB2OASz4g==}
- resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==}
engines: {node: '>=10.18'}
@@ -12707,11 +12690,6 @@ packages:
resolution: {integrity: sha512-NT1CJtq3hHIreOianA8aSXn6Cw0JzYOuDQbOrSPe7gqFnCpKP++MQe3ODgO3oh2GJFORkAAdqredOa60z63GbA==}
- resolution: {integrity: sha512-YUSOLq9VeRNAo/CTaVmhGDKG+LBtA8KF1X4K5+ykMSwWST1vDxJRB2kv2COgLb1fvpCo+A/y9A0G0znNVmdx4w==}
- engines: {node: '>=18.12.0'}
- hasBin: true
-
resolution: {integrity: sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==}
engines: {node: '>=18.0.0'}
@@ -27182,8 +27160,6 @@ snapshots:
-
@@ -28307,21 +28283,6 @@ snapshots:
- dependencies:
- chalk: 5.6.2
- commander: 13.1.0
- debug: 4.4.3
- execa: 8.0.1
- lilconfig: 3.1.3
- listr2: 8.3.3
- micromatch: 4.0.8
- pidtree: 0.6.0
- string-argv: 0.3.2
- yaml: 2.9.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
cli-truncate: 4.0.0