This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(main): add talisman pre-commit hook (#86)
* feat(main): add talisman * fix(talisman): use scope: node
- Loading branch information
Julien Bouquillon
authored
Jul 27, 2022
1 parent
87fcf36
commit 8465982
Showing
4 changed files
with
104 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
yarn lint-staged | ||
yarn node-talisman --githook pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fileignoreconfig: | ||
- filename: package.json | ||
checksum: cabbe39a37509941cf44230de1bdedf50c963ca9ba5cc6c4dfc0ebfcb626653f | ||
scopeconfig: | ||
- scope: node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ | |
"storybook:deploy:action": "npm run storybook:build && gh-pages -d .out -u \"github-actions-bot <[email protected]>\"", | ||
"type-check": "tsc --noEmit", | ||
"type-check:watch": "npm run type-check -- --watch", | ||
"keycloak": "chmod +x keycloak/scripts/keycloak.sh && keycloak/scripts/keycloak.sh" | ||
"keycloak": "chmod +x keycloak/scripts/keycloak.sh && keycloak/scripts/keycloak.sh", | ||
"postinstall": "is-ci || husky install" | ||
}, | ||
"dependencies": { | ||
"@dataesr/react-dsfr": "^1.0.5", | ||
|
@@ -54,9 +55,11 @@ | |
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-storybook": "^0.5.7", | ||
"gh-pages": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"husky": "^8.0.1", | ||
"is-ci": "^3.0.1", | ||
"jest": "^27.5.1", | ||
"lint-staged": "^12.3.7", | ||
"node-talisman": "^1.28.0", | ||
"start-server-and-test": "^1.14.0", | ||
"typescript": "4.6.4" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3723,7 +3723,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1, ajv-keywords@^3.5.2: | |
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" | ||
integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== | ||
|
||
ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5: | ||
ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: | ||
version "6.12.6" | ||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" | ||
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== | ||
|
@@ -4926,6 +4926,11 @@ cliui@^7.0.2: | |
strip-ansi "^6.0.0" | ||
wrap-ansi "^7.0.0" | ||
|
||
clogy@^1.3.3: | ||
version "1.3.3" | ||
resolved "https://registry.yarnpkg.com/clogy/-/clogy-1.3.3.tgz#413ab3dfcbd921f64eee01a14a96e6a61df2b64c" | ||
integrity sha512-qbRbt02HBBy5odvvfTvYrYtn9HtE782sDJpjIAjrlcSJFF1mND1+UZZUz43y3Wxkobn2kZJkxzvBDkZM+CJptA== | ||
|
||
clone-deep@^4.0.1: | ||
version "4.0.1" | ||
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" | ||
|
@@ -6297,7 +6302,7 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: | |
md5.js "^1.3.4" | ||
safe-buffer "^5.1.1" | ||
|
||
exec-sh@^0.3.2: | ||
exec-sh@^0.3.2, exec-sh@^0.3.4: | ||
version "0.3.6" | ||
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" | ||
integrity sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w== | ||
|
@@ -7190,7 +7195,25 @@ handlebars@^4.7.7: | |
optionalDependencies: | ||
uglify-js "^3.1.4" | ||
|
||
has-bigints@^1.0.1, has-bigints@^1.0.2: | ||
har-schema@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" | ||
integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== | ||
|
||
har-validator@~5.1.3: | ||
version "5.1.5" | ||
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" | ||
integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== | ||
dependencies: | ||
ajv "^6.12.3" | ||
har-schema "^2.0.0" | ||
|
||
has-bigints@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" | ||
integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== | ||
|
||
has-bigints@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" | ||
integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== | ||
|
@@ -7503,6 +7526,15 @@ http-proxy-agent@^4.0.1: | |
agent-base "6" | ||
debug "4" | ||
|
||
http-signature@~1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" | ||
integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== | ||
dependencies: | ||
assert-plus "^1.0.0" | ||
jsprim "^1.2.2" | ||
sshpk "^1.7.0" | ||
|
||
http-signature@~1.3.6: | ||
version "1.3.6" | ||
resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.3.6.tgz#cb6fbfdf86d1c974f343be94e87f7fc128662cf9" | ||
|
@@ -7535,10 +7567,10 @@ human-signals@^2.1.0: | |
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" | ||
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== | ||
|
||
husky@^7.0.4: | ||
version "7.0.4" | ||
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" | ||
integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== | ||
husky@^8.0.1: | ||
version "8.0.1" | ||
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9" | ||
integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw== | ||
|
||
[email protected]: | ||
version "0.4.24" | ||
|
@@ -7770,7 +7802,7 @@ is-ci@^2.0.0: | |
dependencies: | ||
ci-info "^2.0.0" | ||
|
||
is-ci@^3.0.0: | ||
is-ci@^3.0.0, is-ci@^3.0.1: | ||
version "3.0.1" | ||
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" | ||
integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== | ||
|
@@ -8783,6 +8815,16 @@ jsonfile@^6.0.1: | |
optionalDependencies: | ||
graceful-fs "^4.1.6" | ||
|
||
jsprim@^1.2.2: | ||
version "1.4.2" | ||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" | ||
integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== | ||
dependencies: | ||
assert-plus "1.0.0" | ||
extsprintf "1.3.0" | ||
json-schema "0.4.0" | ||
verror "1.10.0" | ||
|
||
jsprim@^2.0.2: | ||
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-2.0.2.tgz#77ca23dbcd4135cd364800d22ff82c2185803d4d" | ||
|
@@ -9665,6 +9707,16 @@ node-releases@^2.0.3: | |
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.4.tgz#f38252370c43854dc48aa431c766c6c398f40476" | ||
integrity sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ== | ||
|
||
node-talisman@^1.28.0: | ||
version "1.28.0" | ||
resolved "https://registry.yarnpkg.com/node-talisman/-/node-talisman-1.28.0.tgz#8438a093f74c87e4d03008e91cd4dcd9b258db18" | ||
integrity sha512-pKgJl1YhYBhRZ4av2ycLitQYt7hxYh/kyLf82ZRAO1nbBbeQNdAf9Q+p+6HBT36XMHSZDJVMGIUh8EcdkRA8gA== | ||
dependencies: | ||
clogy "^1.3.3" | ||
exec-sh "^0.3.4" | ||
mkdirp "^1.0.4" | ||
request "^2.88.2" | ||
|
||
normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: | ||
version "2.5.0" | ||
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" | ||
|
@@ -9748,6 +9800,11 @@ nwsapi@^2.2.0: | |
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" | ||
integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== | ||
|
||
oauth-sign@~0.9.0: | ||
version "0.9.0" | ||
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" | ||
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== | ||
|
||
oauth@^0.9.15: | ||
version "0.9.15" | ||
resolved "https://registry.yarnpkg.com/oauth/-/oauth-0.9.15.tgz#bd1fefaf686c96b75475aed5196412ff60cfb9c1" | ||
|
@@ -11098,6 +11155,32 @@ request-progress@^3.0.0: | |
dependencies: | ||
throttleit "^1.0.0" | ||
|
||
request@^2.88.2: | ||
version "2.88.2" | ||
resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" | ||
integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== | ||
dependencies: | ||
aws-sign2 "~0.7.0" | ||
aws4 "^1.8.0" | ||
caseless "~0.12.0" | ||
combined-stream "~1.0.6" | ||
extend "~3.0.2" | ||
forever-agent "~0.6.1" | ||
form-data "~2.3.2" | ||
har-validator "~5.1.3" | ||
http-signature "~1.2.0" | ||
is-typedarray "~1.0.0" | ||
isstream "~0.1.2" | ||
json-stringify-safe "~5.0.1" | ||
mime-types "~2.1.19" | ||
oauth-sign "~0.9.0" | ||
performance-now "^2.1.0" | ||
qs "~6.5.2" | ||
safe-buffer "^5.1.2" | ||
tough-cookie "~2.5.0" | ||
tunnel-agent "^0.6.0" | ||
uuid "^3.3.2" | ||
|
||
require-directory@^2.1.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" | ||
|
@@ -11661,7 +11744,7 @@ sprintf-js@~1.0.2: | |
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" | ||
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= | ||
|
||
sshpk@^1.14.1: | ||
sshpk@^1.14.1, sshpk@^1.7.0: | ||
version "1.17.0" | ||
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" | ||
integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== | ||
|