Skip to content

Commit

Permalink
Replace pre-commit dependency with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 9, 2024
1 parent 49f2c01 commit 752e9b1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 198 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm run lint-staged
npm test
209 changes: 17 additions & 192 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@
"release:patch": "SEMVER=patch npm run release",
"release:minor": "SEMVER=minor npm run release",
"release:major": "SEMVER=major npm run release",
"postinstall": "[ -d './dist' ] || npm run build"
"postinstall": "[ -d './dist' ] || npm run build",
"prepare": "husky || true"
},
"lint-staged": {
"**/*.js": [
"eslint --fix"
]
},
"pre-commit": [
"lint-staged",
"test"
],
"author": "Stefan Peters",
"devDependencies": {
"axios": "^1.7.9",
Expand All @@ -52,12 +49,12 @@
"eslint": "~9.16",
"eslint-config-gbv": "~2.6",
"glob": "^11.0.0",
"husky": "^9.1.7",
"jsdoc": "^4.0.4",
"lint-staged": "^15.2.10",
"lodash": "^4.17.21",
"mocha": "^11.0.1",
"mocha-eslint": "^7.0.0",
"pre-commit": "^1.2.2",
"wikidata-sdk": "^8.1.1"
}
}

0 comments on commit 752e9b1

Please sign in to comment.