0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

chore: update commit hooks

This commit is contained in:
Gao Sun 2021-07-11 21:10:28 +08:00
parent 04e2d22cf8
commit 6169cdbd6d
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
5 changed files with 11 additions and 1 deletions

View file

@ -21,5 +21,6 @@ yarn-error.log*
# misc # misc
cache cache
.*cache
.DS_Store .DS_Store
*.env *.env

1
packages/ui/.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
packages/ui/.husky/commit-msg Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit ""

4
packages/ui/.husky/pre-commit Executable file
View file

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

View file

@ -58,7 +58,7 @@
] ]
}, },
"lint-staged": { "lint-staged": {
"*.{ts,tsx}": "eslint --cache --fix", "*.{ts,tsx}": "eslint --format pretty --cache --fix",
"*.scss": "stylelint --fix" "*.scss": "stylelint --fix"
} }
} }