feat: add husky as dev dependencies for better git hooks experience and fix entry point name for github activity readme

This commit is contained in:
Anda Toshiki 2023-04-02 13:18:10 +08:00
parent dba4f068bc
commit 82946af4d5
4 changed files with 14 additions and 3 deletions

4
.husky/pre-push Executable file
View File

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

View File

@ -111,13 +111,13 @@ Other 28 mins █░░░░░░░░░░░░░░░░
<!-- ![Anda Toshiki's GitHub stats](https://github-readme-stats.vercel.app/api?username=andatoshiki&show_icons=false&theme=transparent&hide_border=true&text_color=FFF&icon_color=FFF&title_color=FFF) -->
<!--START_SECTION:activity-->
<!--END_SECTION:activity-->
<!--RECENT_ACTIVITY:start-->
<!--RECENT_ACTIVITY:end-->
</td>
<td valign="top" width="50%">
#### 🩴 <a href="https://twitter.com/andatoshiki" target="_blank">Twitter updates</a>
#### <a href="https://twitter.com/andatoshiki" target="_blank">Twitter updates</a>
<!-- twitter_plugin_start -->

View File

@ -10,6 +10,7 @@
"NPM_UID": "andatoshiki"
},
"scripts": {
"prepare": "husky install",
"generate:metadata": "node scripts/index.js",
"lint": "prettier --write .",
"generate": "node main.js"
@ -25,6 +26,7 @@
},
"dependencies": {
"axios": "^1.3.4",
"husky": "^8.0.3",
"simple-icons": "^6.7.0"
}
}

View File

@ -411,6 +411,11 @@ http-cache-semantics@^4.0.0:
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
husky@^8.0.3:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
ignore-by-default@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"