Skip to content

Commit c910512

Browse files
committed
added and configured husky
1 parent 1e188bd commit c910512

File tree

4 files changed

+636
-1
lines changed

4 files changed

+636
-1
lines changed

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# npm test
5+
npx lint-staged

.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.js": [
3+
"prettier --write",
4+
"eslint --fix"
5+
]
6+
}

0 commit comments

Comments
 (0)