From 26af530fbc9324505cca984c107b50b6efb0f5bd Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Mon, 11 Nov 2024 10:42:44 +0100 Subject: [PATCH] chore: husky 9 upgrade (#2187) --- .husky/.gitignore | 1 - .husky/pre-commit | 3 --- package.json | 4 ++-- yarn.lock | 12 ++++++------ 4 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 .husky/.gitignore diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec13..000000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit index 22142f404..5ad3415b3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install pretty-quick --staged npm run eslint:ci --quiet diff --git a/package.json b/package.json index 92b51fd76..e43fbe2ab 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "sideEffects": false, "scripts": { "build": "rimraf dist && yarn typegen && rollup -c && yarn copy", - "prepare": "yarn build && husky install", + "prepare": "yarn build && husky", "eslint": "eslint --fix .", "eslint:ci": "eslint .", "prettier": "prettier --check .", @@ -113,7 +113,7 @@ "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-storybook": "^0.10.2", - "husky": "^6.0.0", + "husky": "^9.1.6", "json": "^11.0.0", "prettier": "^3.3.3", "pretty-quick": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index 5aabe2c78..5d6002e69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2831,7 +2831,7 @@ __metadata: eslint-plugin-storybook: "npm:^0.10.2" glsl-noise: "npm:^0.0.0" hls.js: "npm:^1.5.17" - husky: "npm:^6.0.0" + husky: "npm:^9.1.6" json: "npm:^11.0.0" maath: "npm:^0.10.8" meshline: "npm:^3.3.1" @@ -7651,12 +7651,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:^6.0.0": - version: 6.0.0 - resolution: "husky@npm:6.0.0" +"husky@npm:^9.1.6": + version: 9.1.6 + resolution: "husky@npm:9.1.6" bin: - husky: lib/bin.js - checksum: 10c0/00dca95e24f6174f150ba1ee746948a89a3ff20b460ecad7bc2e4c2a76fe5b78bef1400c84bc2bade6588392c37baf57c173f49dc123fdbc7c7a71e4d412fb67 + husky: bin.js + checksum: 10c0/705673db4a247c1febd9c5df5f6a3519106cf0335845027bb50a15fba9b1f542cb2610932ede96fd08008f6d9f49db0f15560509861808b0031cdc0e7c798bac languageName: node linkType: hard