Skip to content

Commit

Permalink
fix husky setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Jul 28, 2024
1 parent a337ca5 commit 0cc8de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test -- --run
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"test": "vitest test/*.js",
"test:old": "vows --dot-matrix test/*.cjs",
"lint": "eslint index.js index-light.js src",
"format": "prettier --write index.js index-light.js src *.config.js"
"format": "prettier --write index.js index-light.js src *.config.js",
"prepare": "husky"
},
"devDependencies": {
"@babel/eslint-parser": "^7.25.0",
Expand Down Expand Up @@ -57,11 +58,5 @@
"doc",
"test"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm test"
}
}
}

0 comments on commit 0cc8de4

Please sign in to comment.