|
| 1 | +--- |
| 2 | +extends: '@commitlint/config-conventional' |
| 3 | + |
| 4 | +rules: |
| 5 | + # See: https://commitlint.js.org/reference/rules.html |
| 6 | + # |
| 7 | + # Rules are made up by a name and a configuration array. The configuration |
| 8 | + # array contains: |
| 9 | + # |
| 10 | + # * Severity [0..2]: 0 disable rule, 1 warning if violated, or 2 error if |
| 11 | + # violated |
| 12 | + # * Applicability [always|never]: never inverts the rule |
| 13 | + # * Value: value to use for this rule (if applicable) |
| 14 | + # |
| 15 | + # Run `npx commitlint --print-config` to see the current setting for all |
| 16 | + # rules. |
| 17 | + # |
| 18 | + header-max-length: [2, always, 100] # Header can not exceed 100 chars |
| 19 | + |
| 20 | + type-case: [2, always, lower-case] # Type must be lower case |
| 21 | + type-empty: [2, never] # Type must not be empty |
| 22 | + |
| 23 | + # Supported conventional commit types |
| 24 | + type-enum: [2, always, [build, ci, chore, docs, feat, fix, perf, refactor, revert, style, test]] |
| 25 | + |
| 26 | + scope-case: [2, always, lower-case] # Scope must be lower case |
| 27 | + |
| 28 | + # Error if subject is one of these cases (encourages lower-case) |
| 29 | + subject-case: [2, never, [sentence-case, start-case, pascal-case, upper-case]] |
| 30 | + subject-empty: [2, never] # Subject must not be empty |
| 31 | + subject-full-stop: [2, never, "."] # Subject must not end with a period |
| 32 | + |
| 33 | + body-leading-blank: [2, always] # Body must have a blank line before it |
| 34 | + body-max-line-length: [2, always, 100] # Body lines can not exceed 100 chars |
| 35 | + |
| 36 | + footer-leading-blank: [2, always] # Footer must have a blank line before it |
| 37 | + footer-max-line-length: [2, always, 100] # Footer lines can not exceed 100 chars |
0 commit comments