From d9f92b800e46e71a15b638856057c1c37b413dd2 Mon Sep 17 00:00:00 2001 From: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> Date: Wed, 22 Jan 2025 22:31:30 +0100 Subject: [PATCH] chore: add pre commit hook to lint and tsc the code (#4378) --- .husky/pre-push | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) create mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 00000000..3b041f8c --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,2 @@ +echo "precommit" +yarn check-all diff --git a/package.json b/package.json index b16cb3a8..c6021061 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@typescript-eslint/eslint-plugin": "^6.7.4", "eslint": "^8.19.0", "eslint-plugin-jest": "^27.4.2", + "husky": "^9.1.7", "jest": "^29.7.0", "prettier": "^2.4.1", "react": "18.2.0",