Skip to content

Commit

Permalink
build: use husky + lint-staged to enforce linting on commit (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept authored Apr 5, 2020
1 parent 250f65d commit 1c10783
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"husky": "^4.2.3",
"lint-staged": "^10.1.2",
"nyc": "^15.0.0",
"sinon": "^9.0.0"
},
Expand Down Expand Up @@ -92,5 +94,15 @@
},
"funding": {
"url": "/~https://github.com/electron-userland/electron-installer-snap?sponsor=1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint . --fix"
]
}
}

0 comments on commit 1c10783

Please sign in to comment.