Add Husky pre-commit with eslint and Sentry env convention (M0).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mauricio Barragan
2026-06-10 23:51:52 -06:00
parent fbfa6e3ba6
commit b5ff33d716
7 changed files with 2191 additions and 3 deletions
+22 -2
View File
@@ -12,7 +12,19 @@
"start": "tsx src/index.ts",
"build": "npm --prefix web install && npm --prefix web run build",
"typecheck": "tsc --noEmit && npm --prefix web run typecheck",
"test": "node scripts/run-tests.mjs"
"test": "node scripts/run-tests.mjs",
"lint": "eslint .",
"prepare": "husky"
},
"lint-staged": {
"src/**/*.ts": [
"eslint --fix",
"prettier --write"
],
"web/src/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"dependencies": {
"express": "^4.21.2",
@@ -21,11 +33,19 @@
"ws": "^8.18.0"
},
"devDependencies": {
"@eslint/js": "^9.18.0",
"@types/express": "^4.17.21",
"@types/node": "^22.10.5",
"@types/swagger-ui-express": "^4.1.8",
"@types/ws": "^8.5.13",
"eslint": "^9.18.0",
"eslint-plugin-react-hooks": "^5.1.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"openapi-types": "^12.1.3",
"typescript": "^5.7.3"
"prettier": "^3.8.3",
"typescript": "^5.7.3",
"typescript-eslint": "^8.26.0"
}
}