1- /**
2- * Commitlint configuration for enforcing conventional commits
3- * Aligned with platform-sdk-swift configuration
4- * @see https://commitlint.js.org/
5- * @see https://www.conventionalcommits.org/
6- */
71module . exports = {
82 extends : [ "@commitlint/config-conventional" ] ,
9-
103 rules : {
11- // Increased body line length to match Swift SDK (300 chars)
124 "body-max-line-length" : [ 2 , "always" , 300 ] ,
13-
14- // Type enum - allowed commit types
155 "type-enum" : [
166 2 ,
177 "always" ,
@@ -29,33 +19,5 @@ module.exports = {
2919 "revert" , // Revert previous commit - no version increment
3020 ] ,
3121 ] ,
32-
33- // Type must be lowercase
34- "type-case" : [ 2 , "always" , "lower-case" ] ,
35-
36- // Type is required
37- "type-empty" : [ 2 , "never" ] ,
38-
39- // Subject must not be empty
40- "subject-empty" : [ 2 , "never" ] ,
41-
42- // Subject must not end with a period
43- "subject-full-stop" : [ 2 , "never" , "." ] ,
44-
45- // Subject case - sentence case, start case, pascal case, or upper case
46- "subject-case" : [
47- 2 ,
48- "never" ,
49- [ "sentence-case" , "start-case" , "pascal-case" , "upper-case" ] ,
50- ] ,
51-
52- // Header (first line) max length
53- "header-max-length" : [ 2 , "always" , 100 ] ,
54-
55- // Body should have a blank line before it
56- "body-leading-blank" : [ 1 , "always" ] ,
57-
58- // Footer should have a blank line before it
59- "footer-leading-blank" : [ 1 , "always" ] ,
6022 } ,
6123} ;
0 commit comments