Skip to content

Commit f8842d5

Browse files
committed
feat: migrate from husky to simple-git-hooks
see creasico/laravel-project#58 Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
1 parent 7825eaa commit f8842d5

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"devDependencies": {
1212
"@commitlint/cli": "^18.2.0",
1313
"@commitlint/config-conventional": "^18.1.0",
14-
"husky": "^8.0.3",
1514
"lint-staged": "^15.0.2",
15+
"simple-git-hooks": "^2.9.0",
1616
"standard-version": "^9.5.0"
1717
},
1818
"commitlint": {
@@ -25,5 +25,9 @@
2525
"php vendor/bin/pint --preset laravel"
2626
]
2727
},
28+
"simple-git-hooks": {
29+
"commit-msg": "pnpm exec commitlint --edit $1",
30+
"pre-commit": "pnpm exec lint-staged --allow-empty"
31+
},
2832
"standard-version": {}
2933
}

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/husky/pre-commit

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)