Skip to content

Commit

Permalink
Bump husky from 4.3.8 to 5.1.3 (#316)
Browse files Browse the repository at this point in the history
* Bump husky from 4.3.8 to 5.1.3

Bumps [husky](https://github.com/typicode/husky) from 4.3.8 to 5.1.3.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v4.3.8...v5.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

* Migrate to husky 5
- let prettier infer parsers
- lint-staged no longer requires manual git add

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vera Reynolds <verareynolds@honeycomb.io>
  • Loading branch information
dependabot[bot] and vreynolds authored Mar 17, 2021
1 parent 33b4d9c commit d99783e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 193 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
184 changes: 4 additions & 180 deletions package-lock.json

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

21 changes: 8 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,31 @@
"format": "prettier --write \"lib/**/*.js\"",
"check-format": "prettier \"lib/**/*.js\"",
"lint": "eslint \"lib/**/*.js\"",
"precommit": "lint-staged"
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --parser flow --write",
"eslint",
"git add"
"prettier --write",
"eslint"
],
"*.json": [
"prettier --parser json --write",
"git add"
"prettier --write"
],
"*.{graphql,gql}": [
"prettier --parser graphql --write",
"git add"
"prettier --write"
],
"*.{md,markdown}": [
"prettier --parser markdown --write",
"git add"
"prettier --write"
],
"*.{css,scss}": [
"prettier --parser css --write",
"git add"
"prettier --write"
]
},
"devDependencies": {
"eslint": "^7.11.0",
"express": "^4.17.1",
"fastify": "^3.0.0",
"husky": "^4.3.6",
"husky": "^5.1.3",
"jest": "^26.6.0",
"jest-in-case": "^1.0.2",
"lint-staged": "^10.5.3",
Expand Down

0 comments on commit d99783e

Please sign in to comment.