Skip to content

Commit 00f6ef7

Browse files
committed
chore(lint): run linters before commit
1 parent b474d45 commit 00f6ef7

File tree

4 files changed

+493
-6
lines changed

4 files changed

+493
-6
lines changed

.huskyrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"hooks": {
3+
"pre-commit": "lint-staged",
34
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
45
}
56
}

.lintstagedrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.js": "eslint"
3+
}

0 commit comments

Comments
 (0)