Skip to content

Commit 1ebd841

Browse files
committed
restructure husky command
1 parent 92233ab commit 1ebd841

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
"private": true,
44
"description": "A stackroom for documents and assets",
55
"scripts": {
6-
"lint": "prettier --write '**/*.{json,md,yml}'"
7-
},
8-
"husky": {
9-
"hooks": {
10-
"pre-commit": "npm run lint"
11-
}
6+
"lint": "prettier --write '**/*.{json,md,yml}'",
7+
"prepare": "husky"
128
},
139
"devDependencies": {
1410
"husky": "9.1.5",

0 commit comments

Comments
 (0)