Skip to content

Commit 66c2a2c

Browse files
committed
feat(ci): refactor husky hooks
Refactor husky hooks
1 parent 82963a7 commit 66c2a2c

File tree

6 files changed

+330
-302
lines changed

6 files changed

+330
-302
lines changed

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npm run commitlint --edit "$1"
1+
npx commitlint --edit "$1"

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npm test -- --no-cache
51
npm run lint-staged
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
"*.{ts,js,json,yml,yaml,md}": "prettier --write",
33
"*.{ts,js}": "eslint --cache --fix",
44
};

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { extends: ["@commitlint/config-angular"] };
1+
export default { extends: ["@commitlint/config-angular"] };

0 commit comments

Comments
 (0)