Skip to content

Commit 515ec5d

Browse files
Merge pull request #1 from DianaSuvorova/commitMsg
chore: commit msg checker
2 parents e98a5ae + 724a64e commit 515ec5d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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: 5 additions & 1 deletion
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": "npm run test && 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)