Skip to content

Commit 354fd0a

Browse files
committed
chore: lint commit messages
1 parent dda12b9 commit 354fd0a

File tree

3 files changed

+659
-226
lines changed

3 files changed

+659
-226
lines changed

commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
],
1414
"scripts": {
1515
"clean": "rimraf lib dist es",
16+
"commitmsg": "commitlint -e $GIT_PARAMS",
1617
"build:commonjs": "cross-env NODE_ENV=cjs rollup -c -o lib/ng-redux.js",
1718
"build:es": "cross-env NODE_ENV=es rollup -c -o es/ng-redux.js",
1819
"build": "npm run build:commonjs && npm run build:es",
@@ -31,11 +32,14 @@
3132
},
3233
"homepage": "https://github.com/angular-redux/ng-redux#readme",
3334
"devDependencies": {
35+
"@commitlint/cli": "^5.2.8",
36+
"@commitlint/config-conventional": "^5.2.3",
3437
"babel-core": "^6.25.0",
3538
"babel-plugin-transform-runtime": "^6.23.0",
3639
"babel-preset-env": "^1.6.0",
3740
"cross-env": "^5.0.5",
3841
"expect": "^1.20.2",
42+
"husky": "^0.14.3",
3943
"mocha": "^3.5.0",
4044
"rimraf": "^2.6.1",
4145
"rollup": "^0.47.4",

0 commit comments

Comments
 (0)