Skip to content

Commit

Permalink
chore: Update husky v6.0.0 (#28827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maeda-Naoki committed Apr 29, 2021
1 parent 791eddd commit a1a90ed
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 184 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run precommit
4 changes: 4 additions & 0 deletions .husky/pre-push
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run prepack
10 changes: 3 additions & 7 deletions package.json
Expand Up @@ -47,7 +47,7 @@
"folder-hash": "^2.1.1",
"fs-extra": "^9.0.1",
"got": "^6.3.0",
"husky": "^2.2.0",
"husky": "^6.0.0",
"klaw": "^3.0.0",
"lint": "^1.1.2",
"lint-staged": "^10.2.11",
Expand Down Expand Up @@ -96,8 +96,10 @@
"gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
"pre-flight": "pre-flight",
"gn-check": "node ./script/gn-check.js",
"precommit": "lint-staged",
"preinstall": "node -e 'process.exit(0)'",
"prepack": "check-for-leaks",
"prepare": "husky install",
"repl": "node ./script/start.js --interactive",
"start": "node ./script/start.js",
"test": "node ./script/spec-runner.js",
Expand All @@ -109,12 +111,6 @@
"keywords": [
"electron"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "check-for-leaks"
}
},
"lint-staged": {
"*.{js,ts}": [
"node script/lint.js --js --fix --only --"
Expand Down

0 comments on commit a1a90ed

Please sign in to comment.