Update husky hooks (#7738)

* [deps] SM: Update husky to v9

* follow migration instructions

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
tangowithfoxtrot 2024-01-30 06:50:54 -08:00 committed by GitHub
parent faabb3bbe9
commit 40dc6861cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 11 deletions

View File

@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged npx lint-staged

12
package-lock.json generated
View File

@ -151,7 +151,7 @@
"html-loader": "4.2.0", "html-loader": "4.2.0",
"html-webpack-injector": "1.1.4", "html-webpack-injector": "1.1.4",
"html-webpack-plugin": "5.5.4", "html-webpack-plugin": "5.5.4",
"husky": "8.0.3", "husky": "9.0.7",
"jest-junit": "16.0.0", "jest-junit": "16.0.0",
"jest-mock-extended": "3.0.5", "jest-mock-extended": "3.0.5",
"jest-preset-angular": "14.0.0", "jest-preset-angular": "14.0.0",
@ -24078,15 +24078,15 @@
} }
}, },
"node_modules/husky": { "node_modules/husky": {
"version": "8.0.3", "version": "9.0.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==",
"dev": true, "dev": true,
"bin": { "bin": {
"husky": "lib/bin.js" "husky": "bin.js"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=18"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/typicode" "url": "https://github.com/sponsors/typicode"

View File

@ -13,7 +13,7 @@
}, },
"homepage": "https://bitwarden.com", "homepage": "https://bitwarden.com",
"scripts": { "scripts": {
"prepare": "husky install", "prepare": "husky",
"lint": "eslint . --cache --cache-strategy content && prettier --check .", "lint": "eslint . --cache --cache-strategy content && prettier --check .",
"lint:fix": "eslint . --cache --cache-strategy content --fix", "lint:fix": "eslint . --cache --cache-strategy content --fix",
"lint:clear": "rimraf .eslintcache", "lint:clear": "rimraf .eslintcache",
@ -113,7 +113,7 @@
"html-loader": "4.2.0", "html-loader": "4.2.0",
"html-webpack-injector": "1.1.4", "html-webpack-injector": "1.1.4",
"html-webpack-plugin": "5.5.4", "html-webpack-plugin": "5.5.4",
"husky": "8.0.3", "husky": "9.0.7",
"jest-junit": "16.0.0", "jest-junit": "16.0.0",
"jest-mock-extended": "3.0.5", "jest-mock-extended": "3.0.5",
"jest-preset-angular": "14.0.0", "jest-preset-angular": "14.0.0",