Skip to content

Commit 74594fc

Browse files
committed
chore: 🤖 add pre-commit hooks
1 parent 0a919be commit 74594fc

File tree

8 files changed

+324
-76
lines changed

8 files changed

+324
-76
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run pre-commit

.lintstagedrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{js,json,css,scss,less,md,ts,html,component.html}": [
3+
"prettier --write"
4+
]
5+
}

hooks/pre-commit.js

-24
This file was deleted.

0 commit comments

Comments
 (0)