Skip to content

Node.js based forum software built for the modern web

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

Julian Lame8a3d929f120
diff --git a/install/package.json b/install/package.json
index 123e966a00..cbee2dfb0a 100644
--- a/install/package.json
+++ b/install/package.json
@@ -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": [