diff --git a/.husky/pre-commit b/.husky/pre-commit
index 36af219892fda8ea669cd4b6725cd7b892231967..6aeb8f2a143092d591a1a4f07518bd40f32ffbc3 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -2,3 +2,4 @@
 . "$(dirname "$0")/_/husky.sh"
 
 npx lint-staged
+npx lint-staged
diff --git a/package.json b/package.json
index f3f74d374d1c84ab55922ff33d7d877d6f7dc7f9..74f5266c4367a3b2ace3d9e4303dff4d2bd046bf 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
   "scripts": {
     "lint": "eslint .",
     "start": "node index.js",
-    "dev": "nodemon index.js | pino-pretty"
+    "dev": "nodemon index.js | pino-pretty",
+    "prepare": "husky install"
   },
   "author": "Open-Xchange",
   "license": "CC-BY-NC-SA-2.5",
@@ -29,17 +30,12 @@
     "eslint-plugin-import": "^2.22.1",
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-promise": "^5.1.0",
-    "husky": ">=4",
+    "husky": ">=6",
     "lint-staged": ">=10",
     "nodemon": "^2.0.7",
     "pino-pretty": "^4.7.1"
   },
-  "husky": {
-    "hooks": {
-      "pre-commit": "lint-staged"
-    }
-  },
   "lint-staged": {
-    "*.js(on)?": "eslint --cache --fix"
+    "*.js": "eslint --cache --fix"
   }
 }
diff --git a/yarn.lock b/yarn.lock
index 26dd2ad14b8d7eb430359d145b5bc6f3044df85e..64b95cab75858f6843fe0d65685a9347f569316a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1352,7 +1352,7 @@ human-signals@^1.1.1:
   resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
   integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
 
-husky@>=4:
+husky@>=6:
   version "6.0.0"
   resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
   integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==