Skip to content

Commit

Permalink
Infrastructure: Bump husky from 4.3.8 to 5.0.9 (pull #1756)
Browse files Browse the repository at this point in the history
* Infrastructure: Bump husky from 4.3.8 to 5.0.9

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

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

* Migrate from Husky 4 to Husky 5

First, I used this tool:

https://github.com/typicode/husky-4-to-5

Then, per documentation at https://typicode.github.io/husky/
I moved pre-commit hooks from package.json into .husky/pre-commit

The command `lint-staged` by itself didn't work, it needs to be
prefixed with `npx`.

* Update husky again

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
  • Loading branch information
dependabot[bot] and zcorpan committed Feb 22, 2021
1 parent ff95a4f commit dc5619c
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 111 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
168 changes: 65 additions & 103 deletions package-lock.json

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

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"regression-report": "node test/util/report",
"test": "npm run lint && npm run regression",
"vnu-jar": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --filterfile .vnurc --no-langdetect --skip-non-html aria-practices.html examples/",
"create-gh-project": "node ./scripts/create-gh-project.js"
"create-gh-project": "node ./scripts/create-gh-project.js",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"repository": {
"type": "git",
Expand All @@ -34,21 +37,22 @@
"homepage": "https://github.com/w3c/aria-practices#readme",
"devDependencies": {
"ava": "^3.15.0",
"babel-eslint": "^10.1.0",
"cheerio": "^1.0.0-rc.5",
"cspell": "^5.2.4",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"babel-eslint": "^10.1.0",
"eslint-plugin-ava": "^11.0.0",
"eslint-plugin-jsdoc": "^32.1.0",
"eslint-plugin-prettier": "^3.3.1",
"geckodriver": "^1.22.1",
"glob": "^7.1.6",
"htmlhint": "^0.14.2",
"htmlparser2": "^6.0.0",
"husky": "^4.3.8",
"husky": "^5.1.1",
"lint-staged": "^10.5.4",
"npm-merge-driver": "^2.3.6",
"pinst": "^2.1.4",
"prettier": "^2.2.1",
"selenium-webdriver": "^4.0.0-beta.1",
"stylelint": "^13.11.0",
Expand All @@ -57,11 +61,6 @@
"stylelint-prettier": "^1.1.2",
"vnu-jar": "^21.2.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.css": [
"stylelint --fix",
Expand Down

0 comments on commit dc5619c

Please sign in to comment.