Skip to content

Commit 3cf5dff

Browse files
committed
chore: moved commitlint config to a separate file
1 parent 43f1d97 commit 3cf5dff

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

commitlint.config.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const Configuration = {
2+
/*
3+
* Resolve and load @commitlint/config-conventional from node_modules.
4+
* Referenced packages must be installed
5+
*/
6+
extends: ["@commitlint/config-conventional"],
7+
/*
8+
* Any rules defined here will override rules from @commitlint/config-conventional
9+
*/
10+
rules: {
11+
"body-leading-blank": [2, "always"],
12+
"footer-leading-blank": [2, "always"],
13+
},
14+
/*
15+
* Custom URL to show upon failure
16+
*/
17+
helpUrl: "https://github.com/conventional-changelog/commitlint/#what-is-commitlint",
18+
};
19+
20+
module.exports = Configuration;

package.json

-15
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,6 @@
4949
"node-fetch": "^2.6.7",
5050
"underscore@npm": "^1.13.2"
5151
},
52-
"commitlint": {
53-
"extends": [
54-
"@commitlint/config-conventional"
55-
],
56-
"rules": {
57-
"body-leading-blank": [
58-
2,
59-
"always"
60-
],
61-
"footer-leading-blank": [
62-
2,
63-
"always"
64-
]
65-
}
66-
},
6752
"scripts": {
6853
"depcheck": "depcheck .",
6954
"changelog": "conventional-changelog --infile CHANGELOG.md --same-file --release-count 0 && prettier --write CHANGELOG.md",

0 commit comments

Comments
 (0)