diff --git a/.husky/pre-commit b/.husky/pre-commit index 19c3fa6e16..b1dd4d8a8e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ yarn dlx lint-staged -yarn workspaces foreach --all -p run typecheck # Format python file changes cd packages/sdk/python/human-protocol-sdk diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000000..c961ffea30 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,7 @@ +echo "Running typecheck before push..." + +if ! yarn workspaces foreach --all -p run typecheck; then + echo "" + echo "Typecheck failed! Please fix the errors above before pushing." + exit 1 +fi \ No newline at end of file diff --git a/packages/apps/dashboard/client/package.json b/packages/apps/dashboard/client/package.json index 254001622b..80032a771a 100644 --- a/packages/apps/dashboard/client/package.json +++ b/packages/apps/dashboard/client/package.json @@ -9,7 +9,7 @@ "clean": "tsc --build --clean && rm -rf dist", "start": "vite", "build": "tsc --build && vite build", - "lint": "yarn typecheck && eslint . --report-unused-disable-directives --max-warnings 0", + "lint": "eslint . --report-unused-disable-directives --max-warnings 0", "lint:fix": "eslint . --fix", "preview": "vite preview", "vercel-build": "yarn workspace human-protocol build:libs && yarn build",