feat(project): migrate from husky and lint-staged to lefthook (#6104)

This commit is contained in:
Vben
2025-05-03 19:43:12 +08:00
committed by GitHub
parent 045bc4e5ee
commit 5689ac60ff
17 changed files with 307 additions and 116 deletions

147
pnpm-lock.yaml generated
View File

@@ -288,9 +288,6 @@ catalogs:
html-minifier-terser:
specifier: ^7.2.0
version: 7.2.0
husky:
specifier: ^9.1.7
version: 9.1.7
is-ci:
specifier: ^4.1.0
version: 4.1.0
@@ -300,9 +297,9 @@ catalogs:
jsonwebtoken:
specifier: ^9.0.2
version: 9.0.2
lint-staged:
specifier: ^15.5.1
version: 15.5.1
lefthook:
specifier: ^1.11.12
version: 1.11.12
lodash.clonedeep:
specifier: ^4.5.0
version: 4.5.0
@@ -592,15 +589,12 @@ importers:
happy-dom:
specifier: 'catalog:'
version: 17.4.6
husky:
specifier: 'catalog:'
version: 9.1.7
is-ci:
specifier: 'catalog:'
version: 4.1.0
lint-staged:
lefthook:
specifier: 'catalog:'
version: 15.5.1
version: 1.11.12
playwright:
specifier: 'catalog:'
version: 1.52.0
@@ -7212,11 +7206,6 @@ packages:
humanize-ms@1.2.1:
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
engines: {node: '>=0.10.0'}
@@ -7763,6 +7752,60 @@ packages:
resolution: {integrity: sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==}
engines: {node: '>= 0.6.3'}
lefthook-darwin-arm64@1.11.12:
resolution: {integrity: sha512-nB3rZVGoign6lhlbdfT1/knk4fV4Kx7kgbho8oSFcpw/o2qRQpLqmclCWUTtf+Pyj4vCzE7hiee/m+uQtvu19w==}
cpu: [arm64]
os: [darwin]
lefthook-darwin-x64@1.11.12:
resolution: {integrity: sha512-ExNz8ctFRRaVz2wpvjmOtV4GeZcRdsAZwnZbmvlu1fMcJ6WtjAuR6fB0ybtcsc03/zBNrfShiq+VtZLkGv8Oeg==}
cpu: [x64]
os: [darwin]
lefthook-freebsd-arm64@1.11.12:
resolution: {integrity: sha512-3Si6YJ8YLEMJ6TGsaBI2ni64XSrJX69N4gX7OKQp85IXeizPUEy7oorYAJCUaw5nMffRbIkzxNTjaMkcn4iwag==}
cpu: [arm64]
os: [freebsd]
lefthook-freebsd-x64@1.11.12:
resolution: {integrity: sha512-J18MNYZKkVdHJ5K54MT8kxJ/W4TBUxD8aCi4e+Oliw8UXAiwaJSTGPkdY5P8aUlVYDknN2w+6I99Dxre6CJRFw==}
cpu: [x64]
os: [freebsd]
lefthook-linux-arm64@1.11.12:
resolution: {integrity: sha512-oIWcj7mcHnFB4tcfz4dsZTnDTXIyF7cjCEqhDQTvqJQLbE1XRfjU0RzQdgSKrzdmXIcUFB+lmcgeRwJnKBEJ8Q==}
cpu: [arm64]
os: [linux]
lefthook-linux-x64@1.11.12:
resolution: {integrity: sha512-sr9X5dW5dl9Fa3Kdk3x66DPGgCz/rykm+JHIyQGfnuvZnaeqkEaXgNubBaVGBbOimagXgtA5DwXc6D6fzUYALA==}
cpu: [x64]
os: [linux]
lefthook-openbsd-arm64@1.11.12:
resolution: {integrity: sha512-4TuX8c/lwky1DSNIY6knIFlMIHQZrVBxh6O5vSTjOAjKv5YmIkNgeUlwcBD+SMru9tQBj7MvOpJSkVkaLK5hhQ==}
cpu: [arm64]
os: [openbsd]
lefthook-openbsd-x64@1.11.12:
resolution: {integrity: sha512-Y/rPvyXtsIH+pxACfLHwxqc2Ahk+aExj8Izce3zXp75Wki5DH+6TXm5tWj5CgIuefL7CMqNFsOZCjEe1+SyM+w==}
cpu: [x64]
os: [openbsd]
lefthook-windows-arm64@1.11.12:
resolution: {integrity: sha512-OJaElGktzsMrkmIpXBqwlc+eZx5kwxx+tJFByTXiW/rb8ttBwj0ueVyfo3lw/PqqlbMy73qc9Uj3CHYkaKsDKw==}
cpu: [arm64]
os: [win32]
lefthook-windows-x64@1.11.12:
resolution: {integrity: sha512-ZhKsisibIcaG+rv9i7UJUgnuejI6mfaS5T3FreqsWt5vAsEIvLLNmZUA15MHPr99n+L4La1YQ2jTqie1kH57dA==}
cpu: [x64]
os: [win32]
lefthook@1.11.12:
resolution: {integrity: sha512-refh8mlcNtwJfmHDH+2mN1KTIVjp1EHlrjzOjfH/hJ4vFQByH2+1KfFDlJLX9V16VESwUNyOGkEZ9cJEF6zNgg==}
hasBin: true
less@4.3.0:
resolution: {integrity: sha512-X9RyH9fvemArzfdP8Pi3irr7lor2Ok4rOttDXBhlwDg+wKQsXOXgHWduAJE1EsF7JJx0w0bcO6BC6tCKKYnXKA==}
engines: {node: '>=14'}
@@ -7783,11 +7826,6 @@ packages:
lines-and-columns@1.2.4:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
lint-staged@15.5.1:
resolution: {integrity: sha512-6m7u8mue4Xn6wK6gZvSCQwBvMBR36xfY24nF5bMTf2MHDYG6S3yhJuOgdYVw99hsjyDt2d4z168b3naI8+NWtQ==}
engines: {node: '>=18.12.0'}
hasBin: true
listhen@1.9.0:
resolution: {integrity: sha512-I8oW2+QL5KJo8zXNWX046M134WchxsXC7SawLPvRQpogCbkyQIaFxPE89A2HiwR7vAK2Dm2ERBAmyjTYGYEpBg==}
hasBin: true
@@ -8673,11 +8711,6 @@ packages:
resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
engines: {node: '>=12'}
pidtree@0.6.0:
resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}
engines: {node: '>=0.10'}
hasBin: true
pify@2.3.0:
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
engines: {node: '>=0.10.0'}
@@ -17380,8 +17413,6 @@ snapshots:
dependencies:
ms: 2.1.3
husky@9.1.7: {}
iconv-lite@0.4.24:
dependencies:
safer-buffer: 2.1.2
@@ -17847,6 +17878,49 @@ snapshots:
dependencies:
readable-stream: 2.3.8
lefthook-darwin-arm64@1.11.12:
optional: true
lefthook-darwin-x64@1.11.12:
optional: true
lefthook-freebsd-arm64@1.11.12:
optional: true
lefthook-freebsd-x64@1.11.12:
optional: true
lefthook-linux-arm64@1.11.12:
optional: true
lefthook-linux-x64@1.11.12:
optional: true
lefthook-openbsd-arm64@1.11.12:
optional: true
lefthook-openbsd-x64@1.11.12:
optional: true
lefthook-windows-arm64@1.11.12:
optional: true
lefthook-windows-x64@1.11.12:
optional: true
lefthook@1.11.12:
optionalDependencies:
lefthook-darwin-arm64: 1.11.12
lefthook-darwin-x64: 1.11.12
lefthook-freebsd-arm64: 1.11.12
lefthook-freebsd-x64: 1.11.12
lefthook-linux-arm64: 1.11.12
lefthook-linux-x64: 1.11.12
lefthook-openbsd-arm64: 1.11.12
lefthook-openbsd-x64: 1.11.12
lefthook-windows-arm64: 1.11.12
lefthook-windows-x64: 1.11.12
less@4.3.0:
dependencies:
copy-anything: 2.0.6
@@ -17872,21 +17946,6 @@ snapshots:
lines-and-columns@1.2.4: {}
lint-staged@15.5.1:
dependencies:
chalk: 5.4.1
commander: 13.1.0
debug: 4.4.0
execa: 8.0.1
lilconfig: 3.1.3
listr2: 8.3.2
micromatch: 4.0.8
pidtree: 0.6.0
string-argv: 0.3.2
yaml: 2.7.1
transitivePeerDependencies:
- supports-color
listhen@1.9.0:
dependencies:
'@parcel/watcher': 2.5.1
@@ -18843,8 +18902,6 @@ snapshots:
picomatch@4.0.2: {}
pidtree@0.6.0: {}
pify@2.3.0: {}
pify@4.0.1: {}