chore(husky): setting up husky as recommended in docs

This commit is contained in:
Julian Lam
2018-11-08 11:06:30 -05:00
parent a5022ce425
commit e8a3d929f1

View File

@@ -14,8 +14,12 @@
"lint": "eslint --cache ./nodebb .",
"pretest": "npm run lint",
"test": "nyc --reporter=html --reporter=text-summary mocha",
"coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage",
"precommit": "lint-staged"
"coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [