-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.js
27 lines (24 loc) · 950 Bytes
/
commitlint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* eslint-disable @typescript-eslint/naming-convention */
"use strict";
const MIN_LENGTH = 3;
const MAX_LENGTH = 72;
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"body-case": [2, "always", "sentence-case"],
"body-full-stop": [2, "always"],
"body-leading-blank": [2, "always"],
"body-max-line-length": [2, "always", MAX_LENGTH],
"body-min-length": [2, "always", MIN_LENGTH],
"footer-leading-blank": [2, "always"],
"footer-max-line-length": [2, "always", MAX_LENGTH],
"footer-min-length": [2, "always", MIN_LENGTH],
"header-case": [2, "always", "sentence-case"],
"header-full-stop": [2, "never"],
"header-max-length": [2, "always", MAX_LENGTH],
"header-min-length": [2, "always", MIN_LENGTH],
"scope-empty": [2, "always"],
"subject-empty": [2, "always"],
"type-empty": [2, "always"]
}
};