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:
parent
04e2d22cf8
commit
6169cdbd6d
5 changed files with 11 additions and 1 deletions
1
packages/ui/.gitignore
vendored
1
packages/ui/.gitignore
vendored
|
@ -21,5 +21,6 @@ yarn-error.log*
|
|||
|
||||
# misc
|
||||
cache
|
||||
.*cache
|
||||
.DS_Store
|
||||
*.env
|
||||
|
|
1
packages/ui/.husky/.gitignore
vendored
Normal file
1
packages/ui/.husky/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
_
|
4
packages/ui/.husky/commit-msg
Executable file
4
packages/ui/.husky/commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx --no-install commitlint --edit ""
|
4
packages/ui/.husky/pre-commit
Executable file
4
packages/ui/.husky/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
|
@ -58,7 +58,7 @@
|
|||
]
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx}": "eslint --cache --fix",
|
||||
"*.{ts,tsx}": "eslint --format pretty --cache --fix",
|
||||
"*.scss": "stylelint --fix"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue