Skip to content

Commit 225244d

Browse files
committed
chore: commit msg checker
1 parent e98a5ae commit 225244d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

commitlint.config.js

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

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
"test": "npm run lint && mocha tests --recursive",
1616
"test-single": "mocha tests/lib/rules/prefer-separate-component-file",
1717
"debug-test": "mocha --debug-brk --inspect tests/index.js",
18-
"semantic-release": "semantic-release"
18+
"semantic-release": "semantic-release",
19+
"commitmsg": "commitlint -e $GIT_PARAMS"
1920
},
2021
"repository": {
2122
"type": "git",
2223
"url": "https://github.com/DianaSuvorova/eslint-plugin-react-redux"
2324
},
2425
"devDependencies": {
26+
"@commitlint/cli": "^6.0.2",
27+
"@commitlint/config-conventional": "^6.0.2",
2528
"babel-eslint": "^8.1.0",
2629
"eslint": "^4.14.0",
2730
"eslint-config-airbnb": "^16.1.0",
@@ -32,6 +35,7 @@
3235
"eslint-plugin-promise": "^3.6.0",
3336
"eslint-plugin-react": "^7.5.1",
3437
"eslint-plugin-standard": "^3.0.1",
38+
"husky": "^0.14.3",
3539
"mocha": "^4.0.1",
3640
"semantic-release": "^11.0.2"
3741
},

0 commit comments

Comments
 (0)