Skip to content

Commit

Permalink
chore: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
killmenot committed Mar 6, 2020
1 parent ac2bcec commit 0976114
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "npm run lint && npm run test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
"coverage": "nyc --reporter=html --reporter=text mocha",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"pre-commit": [
"lint",
"test"
],
"nyc": {
"all": true,
"include": [
Expand All @@ -52,6 +48,8 @@
"nodemailer": ">=4.x"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"chai": "^4.2.0",
"coveralls": "^3.0.9",
"dirty-chai": "^2.0.1",
Expand All @@ -61,9 +59,9 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^4.2.3",
"mocha": "^7.1.0",
"nodemailer": "^6.1.1",
"nyc": "^15.0.0",
"pre-commit": "^1.2.2"
"nyc": "^15.0.0"
}
}

0 comments on commit 0976114

Please sign in to comment.