Skip to content

Commit

Permalink
add husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 13, 2022
1 parent 5235470 commit 9095a06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -18,7 +18,8 @@
"prettier": "prettier --write **/*.{js,md,json,yml,yaml}",
"postversion": "npm run test && git push && git push --tags && npm publish && npm run deploy && npm run open-releases",
"open-releases": "open \"$(node -e 'console.log(`${require(\"./package.json\").repository}/releases`)')\"",
"deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master"
"deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master",
"prepare": "husky install"
},
"dependencies": {
"@actions/core": "1.6.0",
Expand Down Expand Up @@ -65,11 +66,6 @@
"lib/**"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
Expand Down

0 comments on commit 9095a06

Please sign in to comment.