Skip to content

Commit 4648df5

Browse files
authored
Merge pull request #40 from erezrokah/chore/add_commitlint
chore: add commit lint
2 parents 4812710 + 0d95b44 commit 4648df5

File tree

4 files changed

+744
-11
lines changed

4 files changed

+744
-11
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ out.txt
99

1010
reports
1111

12-
junit.xml
12+
junit.xml
13+
14+
yarn-error.log

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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,17 @@
3838
"type": "git",
3939
"url": "git+https://github.com/erezrokah/aws-testing-library.git"
4040
},
41+
"husky": {
42+
"hooks": {
43+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
44+
}
45+
},
4146
"homepage": "https://github.com/erezrokah/aws-testing-library/#readme",
4247
"author": "Erez Rokah",
4348
"license": "MIT",
4449
"devDependencies": {
50+
"@commitlint/cli": "^8.1.0",
51+
"@commitlint/config-conventional": "^8.1.0",
4552
"@types/chai": "^4.1.7",
4653
"@types/jest": "^24.0.13",
4754
"@types/jest-diff": "^20.0.1",
@@ -50,6 +57,7 @@
5057
"@types/node": "^12.0.4",
5158
"@types/uuid": "^3.4.4",
5259
"chai": "^4.2.0",
60+
"husky": "^3.0.4",
5361
"jest": "^24.8.0",
5462
"jest-junit": "^6.4.0",
5563
"mockdate": "^2.0.2",

0 commit comments

Comments
 (0)