chore: setup husky

This commit is contained in:
DevAndromeda 2021-08-05 14:30:02 +05:45
parent ebf8e8cb04
commit 454395f85c
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6
3 changed files with 10 additions and 0 deletions

4
.husky/pre-commit Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run format && npm run lint:fix

View file

@ -76,6 +76,7 @@
"discord-api-types": "^0.22.0",
"discord.js": "^13.0.0-dev.t1628124537.3eb4140",
"eslint": "^7.32.0",
"husky": "^7.0.1",
"jsdoc-babel": "^0.5.0",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",

View file

@ -2992,6 +2992,11 @@ https-proxy-agent@^5.0.0:
agent-base "6"
debug "4"
husky@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.1.tgz#579f4180b5da4520263e8713cc832942b48e1f1c"
integrity sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==
iconv-lite@0.4.24, iconv-lite@^0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"