Skip to content

Commit 795d03a

Browse files
committed
chore: relax subject-case to allow proper nouns in commit subjects
Previously the inherited config-conventional rule rejected sentence-case which made reasonable subjects like 'add Giscus comments' invalid whenever a proper noun led the sentence. Now only ALL-CAPS subjects are rejected.
1 parent 6a696ee commit 795d03a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

commitlint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export default {
5050
// Type must not be empty
5151
'type-empty': [2, 'never'],
5252
// Max header length
53-
'header-max-length': [2, 'always', 100]
53+
'header-max-length': [2, 'always', 100],
54+
// Allow sentence-case, pascal-case, start-case subjects (for proper nouns like
55+
// "Giscus", "Buttondown", "CockroachDB"). Only reject ALL-CAPS ("SHOUTING").
56+
'subject-case': [2, 'never', ['upper-case']]
5457
}
5558
};

0 commit comments

Comments
 (0)