Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
chore: fix Git Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 13, 2022
1 parent a27000d commit a604d01
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 255 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run format
248 changes: 0 additions & 248 deletions package-lock.json

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

7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{src,tests,.github}/**/*.{cjs,mjs,js,md,html}\" \"*.{cjs,mjs,js,md,html}\" \".*.{cjs,mjs,js,md,html}\"",
"prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tests,.github}/**/*.{cjs,mjs,js,md,yml,json,html}\" \"*.{cjs,mjs,js,yml,json,html}\" \".*.{cjs,mjs,js,yml,json,html}\" \"!package-lock.json\" \"!CHANGELOG.md\""
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm run format"
}
},
"license": "MIT",
"author": "Netlify Inc.",
"contributors": [
Expand Down Expand Up @@ -69,7 +63,6 @@
"@netlify/eslint-config-node": "^4.1.2",
"ava": "^3.0.0",
"from2-string": "^1.1.0",
"husky": "^4.3.8",
"nock": "^13.0.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
Expand Down

0 comments on commit a604d01

Please sign in to comment.