Skip to content

Commit cdce04d

Browse files
committed
build: switch to commitlint
1 parent 91ca037 commit cdce04d

File tree

3 files changed

+282
-41
lines changed

3 files changed

+282
-41
lines changed

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@commitlint/config-conventional']}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
1515
"test:watch": "mocha --watch $npm_package_config_mocha",
1616
"codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
17-
"commitmsg": "validate-commit-msg",
17+
"commitmsg": "commitlint -e $GIT_PARAMS",
1818
"precommit": "npm run lint && flow",
1919
"prepush": "npm test",
2020
"prepublish": "npm run lint && flow && npm test && npm run build",
@@ -51,6 +51,8 @@
5151
},
5252
"homepage": "https://github.com/jedwards1211/es2015-library-skeleton#readme",
5353
"devDependencies": {
54+
"@commitlint/cli": "^5.2.5",
55+
"@commitlint/config-conventional": "^5.2.3",
5456
"@jedwards1211/eslint-config": "^1.0.0",
5557
"@jedwards1211/eslint-config-flow": "^1.0.0",
5658
"babel-cli": "^6.23.0",
@@ -77,7 +79,6 @@
7779
"mocha": "^3.2.0",
7880
"nyc": "^10.1.2",
7981
"rimraf": "^2.6.0",
80-
"semantic-release": "^6.3.6",
81-
"validate-commit-msg": "^2.11.1"
82+
"semantic-release": "^6.3.6"
8283
}
8384
}

0 commit comments

Comments
 (0)