We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e5210 commit f69d108Copy full SHA for f69d108
src/lint.ts
@@ -27,6 +27,23 @@ export function checkMessage(msg: Message, config: Config): void {
27
);
28
}
29
30
+ if (
31
+ msg.subject.charAt(0).toUpperCase() === msg.subject.charAt(0) &&
32
+ !config.upperCase
33
+ ) {
34
+ throw new Error(
35
+ `Expected first letter of the subject to be lower case, but got '${msg.subject}'`
36
+ );
37
+ }
38
39
+ msg.subject.charAt(0).toLowerCase() === msg.subject.charAt(0) &&
40
+ config.upperCase
41
42
43
+ `Expected first letter of the subject to be upperCase case, but got '${msg.subject}'`
44
45
46
+
47
if (msg.body) {
48
checkWrap(msg.body, config.bodyWrap);
49
0 commit comments