feat(chore): configure pre-commit hook (#983)

* chore: add husky as a devDep

* chore: add lint-staged as a devDep

* configure: pre-commit hook for staged files

* fix: minor tweak

* chore: update glob
This commit is contained in:
James George
2019-12-19 14:08:21 +05:30
committed by Anix
parent 3cd03d480d
commit eea41a1207
2 changed files with 824 additions and 0 deletions
+10
View File
@@ -41,6 +41,14 @@
"pub": "sh build/release.sh",
"postinstall": "opencollective-postinstall"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "npm run lint"
},
"dependencies": {
"marked": "^0.7.0",
"medium-zoom": "^1.0.4",
@@ -59,8 +67,10 @@
"eslint": "^5.16.0",
"eslint-config-xo-space": "^0.21.0",
"esm": "^3.1.4",
"husky": "^3.1.0",
"jsdom": "^15.1.1",
"lerna": "^3.17.0",
"lint-staged": "^9.5.0",
"live-server": "^1.2.1",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",