From ea7d18ea25578a0a1aca70135b83d7e79ad95c54 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Wed, 29 May 2024 15:26:06 -0700 Subject: [PATCH] Update package.json --- admin-portal-frontend/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin-portal-frontend/package.json b/admin-portal-frontend/package.json index d957dbc..2f0dd4a 100644 --- a/admin-portal-frontend/package.json +++ b/admin-portal-frontend/package.json @@ -7,10 +7,11 @@ "build": "next build", "start": "next start", "lint": "next lint", - "check-git-hooks": "echo Git hooks not configured yet. You SHOULD NOT see this message unless you are still setting up linting.", + "check-git-hooks": "cd .. && node .secret-scan/secret-scan.js -- --check-git-hooks", "format": "npm run check-git-hooks && prettier --write .", "lint-fix": "npm run check-git-hooks && (eslint --fix --cache --report-unused-disable-directives . || true) && prettier --write .", - "lint-check": "npm run check-git-hooks && eslint --cache --report-unused-disable-directives . && prettier --check ." + "lint-check": "npm run check-git-hooks && eslint --cache --report-unused-disable-directives . && prettier --check .", + "prepare": "cd .. && husky" }, "dependencies": { "@emotion/react": "^11.11.4", @@ -34,6 +35,7 @@ "eslint-config-next": "^14.1.4", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", + "husky": "^9.0.11", "postcss": "^8", "prettier": "^3.2.5", "tailwindcss": "^3.3.0",