mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 07:13:46 +08:00
running lint before commiting
This commit is contained in:
@@ -7,6 +7,17 @@
|
||||
"start": "./server/bin/www",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"config": {
|
||||
"pre-git": {
|
||||
"commit-msg": [],
|
||||
"pre-commit": [
|
||||
"npm run lint"
|
||||
],
|
||||
"pre-push": [],
|
||||
"post-commit": [],
|
||||
"post-merge": []
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/coralproject/talk.git"
|
||||
@@ -27,5 +38,11 @@
|
||||
"debug": "^2.2.0",
|
||||
"express": "^4.14.0",
|
||||
"mongoose": "^4.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^3.5.0",
|
||||
"mocha": "^3.1.2",
|
||||
"pre-git": "^3.10.0",
|
||||
"supertest": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user