Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit 20f0736

Browse files
committed
test: add commitlint
1 parent 232555c commit 20f0736

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"url": "https://github.com/dominykas/allow-scripts.git"
88
},
99
"scripts": {
10-
"test": "lab -L -t 100 -m 5000"
10+
"lint-commits": "commitlint --from=${TRAVIS_BRANCH:-origin/master}",
11+
"test": "lab -L -t 100 -m 5000 && npm run lint-commits"
1112
},
1213
"bin": {
1314
"allow-scripts": "./bin/allow-scripts.js"
@@ -20,6 +21,8 @@
2021
"topo": "3.x.x"
2122
},
2223
"devDependencies": {
24+
"@commitlint/cli": "7.x.x",
25+
"@commitlint/config-conventional": "7.x.x",
2326
"code": "5.x.x",
2427
"lab": "18.x.x",
2528
"mkdirp": "0.5.x",
@@ -31,6 +34,11 @@
3134
"bin",
3235
"lib"
3336
],
37+
"commitlint": {
38+
"extends": [
39+
"@commitlint/config-conventional"
40+
]
41+
},
3442
"release": {
3543
"npmPublish": false,
3644
"tarballDir": ".",

0 commit comments

Comments
 (0)