Skip to content

Commit

Permalink
Upgrade husky to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick authored and fatso83 committed Nov 21, 2022
1 parent 56804c0 commit 77f897c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 237 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

$(npm bin)/lint-staged

239 changes: 11 additions & 228 deletions package-lock.json

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

14 changes: 5 additions & 9 deletions package.json
Expand Up @@ -25,7 +25,8 @@
"prettier:write": "prettier --write '**/*.{js,css,md}'",
"preversion": "./scripts/preversion.sh",
"version": "./scripts/version.sh",
"postversion": "./scripts/postversion.sh"
"postversion": "./scripts/postversion.sh",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,css,md}": "prettier --check",
Expand All @@ -37,7 +38,7 @@
"devDependencies": {
"@sinonjs/eslint-config": "4.0.6",
"@sinonjs/referee-sinon": "10.1.0",
"husky": "4.2.1",
"husky": "^8.0.0",
"jsdom": "20.0.2",
"lint-staged": "10.0.7",
"mocha": "10.1.0",
Expand All @@ -46,10 +47,8 @@
"prettier": "2.7.1"
},
"main": "./src/fake-timers-src.js",
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
"dependencies": {
"@sinonjs/commons": "^2.0.0"
},
"nyc": {
"branches": 85,
Expand All @@ -62,8 +61,5 @@
"types/**",
"fake-timers.js"
]
},
"dependencies": {
"@sinonjs/commons": "^2.0.0"
}
}

0 comments on commit 77f897c

Please sign in to comment.