0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

chore: update commit hooks

This commit is contained in:
Gao Sun 2021-07-11 21:10:28 +08:00
parent 554efa661a
commit 5d8c53e648
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"
} }
} }