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