Skip to content

Commit f49fa8b

Browse files
committed
Update husky
1 parent 404dc9b commit f49fa8b

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"**/*.{js,ts,jsx,tsx,json,css,html}": "prettier --write"
3+
}

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,12 @@
3434
"devDependencies": {
3535
"@types/jest": "^26.0.24",
3636
"@types/node": "^16.9.1",
37-
"husky": "^7.0.1",
37+
"husky": "^4.3.8",
3838
"jest": "^27.0.6",
3939
"lint-staged": "^11.1.1",
4040
"prettier": "^2.3.0",
4141
"rimraf": "^3.0.2",
4242
"ts-jest": "^27.0.4",
4343
"typescript": "^4.2.4"
44-
},
45-
"husky": {
46-
"hooks": {
47-
"pre-commit": [
48-
"lint-staged",
49-
"npm run test"
50-
]
51-
}
52-
},
53-
"lint-staged": {
54-
"**/*.{js,ts,jsx,tsx,json,css,html}": "prettier --write"
5544
}
5645
}

0 commit comments

Comments
 (0)