Skip to content

Commit 4d52738

Browse files
committed
feat: commit lint
1 parent a2c456e commit 4d52738

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
# npx lint-staged
4+
npx lint-staged

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@
2727
"lint-staged": "^13.0.3",
2828
"prettier": "^2.7.0",
2929
"typescript": "^4.7.3"
30-
}
30+
},
31+
"lint-staged": {
32+
"*.js": "eslint"
33+
}
3134
}

0 commit comments

Comments
 (0)