Skip to content

Commit

Permalink
feat: Lint on push rather than pretest
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehall314 committed Mar 31, 2021
1 parent 6a2dc5b commit 054ab65
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
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-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
6 changes: 6 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"prettier": "prettier --write lib",
"lint": "eslint lib test",
"pretest": "npm run lint && npm run build",
"pretest": "npm run build",
"build": "babel lib -d dist",
"test": "tape test",
"test:coverage": "nyc npm test"
Expand All @@ -37,6 +37,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"husky": "^6.0.0",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"sinon": "^10.0.0",
Expand Down

0 comments on commit 054ab65

Please sign in to comment.