diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000000..e4649004d268 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +cd ./frontend && npx lint-staged --allow-empty diff --git a/frontend/.husky/_/.gitignore b/frontend/.husky/_/.gitignore deleted file mode 100644 index 2cebf5cce4fc..000000000000 --- a/frontend/.husky/_/.gitignore +++ /dev/null @@ -1 +0,0 @@ -husky.sh diff --git a/frontend/.husky/pre-commit b/frontend/.husky/pre-commit deleted file mode 100755 index 146c0dfd0def..000000000000 --- a/frontend/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged --allow-empty diff --git a/frontend/package.json b/frontend/package.json index 515687db1dbe..a276bbf86e8e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,7 @@ "kill": "kill -9 $(lsof -ti tcp:4444)", "test:bundle": "cross-env E2E=1 npm run bundle", "postinstall": "npm run env", - "husky:install": "cd ../ && husky install ./frontend/husky && cd ./frontend", + "husky:install": "cd ../ && husky install", "test:bundle:staging": "cross-env E2E=1 ENV=staging npm run bundle", "test:dev": "cross-env NODE_ENV=production E2E=true E2E_DEV=true ts-node -T ./e2e/index.cafe", "test:devBundle": "npm run test:bundle && npm run test:dev",