Chore: bump Husky to v7 (#40797)

* chore: bump husky to v7 according to husky migration guide

* chore(renovate): remove husky from list of ignored deps
This commit is contained in:
Jack Westbrook 2021-11-02 11:53:27 +01:00 committed by GitHub
parent f2f31f60f2
commit 1767e6aab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 65 deletions

View File

@ -9,7 +9,6 @@
"d3",
"d3-force", // we should bump this once we move to esm modules
"globby", // we should bump this once we move to esm modules
"husky",
"slate",
"slate-plain-serializer",
"systemjs",

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn run precommit

View File

@ -46,17 +46,13 @@
"typecheck": "tsc --noEmit && yarn run packages:typecheck",
"plugins:build-bundled": "grafana-toolkit plugin:bundle-managed",
"watch": "yarn start -d watch,start core:start --watchTheme",
"ci:test-frontend": "yarn run test:ci && yarn grafana-toolkit node-version-check"
"ci:test-frontend": "yarn run test:ci && yarn grafana-toolkit node-version-check",
"postinstall": "husky install"
},
"grafana": {
"whatsNewUrl": "https://grafana.com/docs/grafana/next/whatsnew/whats-new-in-v8-2/",
"releaseNotesUrl": "https://grafana.com/docs/grafana/next/release-notes/"
},
"husky": {
"hooks": {
"pre-commit": "yarn run precommit"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --ext .js,.tsx,.ts --cache --fix"
@ -183,7 +179,7 @@
"html-webpack-harddisk-plugin": "2.0.0",
"html-webpack-plugin": "5.3.2",
"http-server": "13.0.1",
"husky": "4.2.1",
"husky": "^7.0.0",
"iconscout-unicons-tarball": "https://github.com/grafana/icons/tarball/63056cd833ba7ee4e94904492b3a8c0cabc38d28",
"jest": "26.6.3",
"jest-canvas-mock": "2.3.0",

View File

@ -12545,13 +12545,6 @@ __metadata:
languageName: node
linkType: hard
"compare-versions@npm:^3.5.1":
version: 3.6.0
resolution: "compare-versions@npm:3.6.0"
checksum: 7492a50cdaa2c27f5254eee7c4b38856e1c164991bab3d98d7fd067fe4b570d47123ecb92523b78338be86aa221668fd3868bfe8caa5587dc3ebbe1a03d52b5d
languageName: node
linkType: hard
"component-classes@npm:^1.2.5":
version: 1.2.6
resolution: "component-classes@npm:1.2.6"
@ -16752,15 +16745,6 @@ __metadata:
languageName: node
linkType: hard
"find-versions@npm:^3.2.0":
version: 3.2.0
resolution: "find-versions@npm:3.2.0"
dependencies:
semver-regex: ^2.0.0
checksum: f010e00f9dedd5b83206762d668b4b3b86bbb81f3c2d957e2559969b9eadb6124297c4a2a1d51c5efea3d79557b19660a2758c77bb6a5ba5ce7750fba9847082
languageName: node
linkType: hard
"flat-cache@npm:^3.0.4":
version: 3.0.4
resolution: "flat-cache@npm:3.0.4"
@ -18030,7 +18014,7 @@ __metadata:
html-webpack-harddisk-plugin: 2.0.0
html-webpack-plugin: 5.3.2
http-server: 13.0.1
husky: 4.2.1
husky: ^7.0.0
iconscout-unicons-tarball: "https://github.com/grafana/icons/tarball/63056cd833ba7ee4e94904492b3a8c0cabc38d28"
immer: 9.0.6
immutable: 3.8.2
@ -19009,24 +18993,12 @@ __metadata:
languageName: node
linkType: hard
"husky@npm:4.2.1":
version: 4.2.1
resolution: "husky@npm:4.2.1"
dependencies:
chalk: ^3.0.0
ci-info: ^2.0.0
compare-versions: ^3.5.1
cosmiconfig: ^6.0.0
find-versions: ^3.2.0
opencollective-postinstall: ^2.0.2
pkg-dir: ^4.2.0
please-upgrade-node: ^3.2.0
slash: ^3.0.0
which-pm-runs: ^1.0.0
"husky@npm:^7.0.0":
version: 7.0.4
resolution: "husky@npm:7.0.4"
bin:
husky-run: bin/run.js
husky-upgrade: lib/upgrader/bin.js
checksum: ff6a7a9bbc7300e505b7b5dbb197160370e80b6378942783893a9a8130ab5990046e766da2a6b71dd5236abdd0f2410d8d8c9f9f1201902e51f1b64eb1189006
husky: lib/bin.js
checksum: c6ec4af63da2c9522da8674a20ad9b48362cc92704896cc8a58c6a2a39d797feb2b806f93fbd83a6d653fbdceb2c3b6e0b602c6b2e8565206ffc2882ef7db9e9
languageName: node
linkType: hard
@ -24468,15 +24440,6 @@ __metadata:
languageName: node
linkType: hard
"opencollective-postinstall@npm:^2.0.2":
version: 2.0.3
resolution: "opencollective-postinstall@npm:2.0.3"
bin:
opencollective-postinstall: index.js
checksum: 0a68c5cef135e46d11e665d5077398285d1ce5311c948e8327b435791c409744d4a6bb9c55bd6507fb5f2ef34b0ad920565adcdaf974cbdae701aead6f32b396
languageName: node
linkType: hard
"opener@npm:^1.5.1, opener@npm:^1.5.2":
version: 1.5.2
resolution: "opener@npm:1.5.2"
@ -30174,13 +30137,6 @@ __metadata:
languageName: node
linkType: hard
"semver-regex@npm:^2.0.0":
version: 2.0.0
resolution: "semver-regex@npm:2.0.0"
checksum: da7d6f5ceae80e2097933b1e4ea2815c2cfa2c50c6501db1a3d435a6063c0f23d66bc25fe8d06755048f3d7588d85339db6471446b2c91fea907e5c2ada5b0df
languageName: node
linkType: hard
"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.0.3, semver@npm:^5.1.0, semver@npm:^5.3.0, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1":
version: 5.7.1
resolution: "semver@npm:5.7.1"
@ -34518,13 +34474,6 @@ __metadata:
languageName: node
linkType: hard
"which-pm-runs@npm:^1.0.0":
version: 1.0.0
resolution: "which-pm-runs@npm:1.0.0"
checksum: 30cf7aee31f264558070e92414316c169367bb2b84a0a32777d30392fea0892fcf9955b81c3fe7f52165ae5a33f0acfd3bc0916416cb07e6d414c90255c228ca
languageName: node
linkType: hard
"which-typed-array@npm:^1.1.2":
version: 1.1.7
resolution: "which-typed-array@npm:1.1.7"