From 718758be494c06acba6bc1c7b271e83581b5ff84 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Wed, 9 Oct 2024 11:57:04 +0200 Subject: [PATCH] NEO-823 Migrate husky config (#353) * NEO-823 Migrate husky config These lines would fail in Husky v10.0.0. Signed-off-by: Christian Paul * Update husky and 'husky install' is deprecated Signed-off-by: Milton Moura --------- Signed-off-by: Christian Paul Signed-off-by: Milton Moura Co-authored-by: Milton Moura --- .husky/pre-commit | 3 --- package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 19863df..700706b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - node ./node_modules/lint-staged/bin/lint-staged.js diff --git a/package.json b/package.json index 191b11f..8efe34e 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "translate": "i18next \"src/**/*.{ts,tsx}\"", "prettier:check": "prettier --check .", "prettier:write": "prettier --write .", - "prepare": "husky install", + "prepare": "husky", "docker:build": "docker build -t matrix-barcamp-widget .", "generate-disclaimer": "cp LICENSE ./build/LICENSE.txt && cp NOTICE ./build/NOTICE.txt && yarn licenses generate-disclaimer --prod >> ./build/NOTICE.txt && yarn licenses list --prod --json --no-progress > ./build/licenses.json", "e2e": "playwright test --headed --project=chromium --workers=1 --reporter=dot", @@ -111,7 +111,7 @@ "eslint-plugin-notice": "^0.9.10", "eslint-plugin-playwright": "^0.12.0", "eslint-plugin-promise": "^6.1.1", - "husky": "^8.0.3", + "husky": "^9.1.6", "i18next-parser": "8.12.0", "lint-staged": "^15.2.0", "nanoid": "^3.3.4", diff --git a/yarn.lock b/yarn.lock index 0e0fdce..bdeb061 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6629,10 +6629,10 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -husky@^8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" - integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== +husky@^9.1.6: + version "9.1.6" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.6.tgz#e23aa996b6203ab33534bdc82306b0cf2cb07d6c" + integrity sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A== hyphenate-style-name@^1.0.3: version "1.0.4"