From 4ae5a8158a28edacbaa8baa3f1ad04315930693f Mon Sep 17 00:00:00 2001
From: Oleksandr Hrishchuk <alexgrischuk@gmail.com>
Date: Fri, 5 Feb 2021 16:52:42 +0100
Subject: [PATCH 1/3] Upgrade husky to v5

---
 .husky/.gitignore | 1 +
 .husky/pre-commit | 4 ++++
 package.json      | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 .husky/.gitignore
 create mode 100755 .husky/pre-commit

diff --git a/.husky/.gitignore b/.husky/.gitignore
new file mode 100644
index 000000000..c9cdc63b0
--- /dev/null
+++ b/.husky/.gitignore
@@ -0,0 +1 @@
+_
\ No newline at end of file
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 000000000..dc0378c34
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+yarn lint-staged
\ No newline at end of file
diff --git a/package.json b/package.json
index e7eaac5d0..de526cdae 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
     "fs-extra": "^9.0.1",
     "get-port": "^5.1.1",
     "globby": "^11.0.1",
-    "husky": "^4.3.0",
+    "husky": "^5.0.8",
     "jest": "26.6.0",
     "lerna": "3.22.1",
     "lerna-changelog": "~0.8.2",
-- 
GitLab


From 97703c98b7921297ebc295f9f846ba7ce449f73e Mon Sep 17 00:00:00 2001
From: Oleksandr Hrishchuk <alexgrischuk@gmail.com>
Date: Fri, 5 Feb 2021 16:58:11 +0100
Subject: [PATCH 2/3] Update lint-staged

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index de526cdae..f2cec6832 100644
--- a/package.json
+++ b/package.json
@@ -33,7 +33,7 @@
     "jest": "26.6.0",
     "lerna": "3.22.1",
     "lerna-changelog": "~0.8.2",
-    "lint-staged": "^10.4.2",
+    "lint-staged": "^10.5.3",
     "meow": "^6.1.1",
     "multimatch": "^4.0.0",
     "prettier": "2.1.2",
-- 
GitLab


From 3089f081d4ce2b37871b728bb223eab1dcfeb4c5 Mon Sep 17 00:00:00 2001
From: Oleksandr Hrishchuk <alexgrischuk@gmail.com>
Date: Fri, 5 Feb 2021 18:42:49 +0100
Subject: [PATCH 3/3] remove husky config from the package.json

---
 package.json | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/package.json b/package.json
index f2cec6832..82534cd21 100644
--- a/package.json
+++ b/package.json
@@ -44,11 +44,6 @@
     "wait-for-localhost": "^3.3.0",
     "web-vitals": "^1.0.1"
   },
-  "husky": {
-    "hooks": {
-      "pre-commit": "lint-staged"
-    }
-  },
   "lint-staged": {
     "*.{js,json,yml,yaml,css,scss,ts,tsx,md}": [
       "prettier --write"
-- 
GitLab