forked from CenterForOpenScience/angular-osf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
32 lines (32 loc) · 1.16 KB
/
commitlint.config.cjs
File metadata and controls
32 lines (32 loc) · 1.16 KB
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
28
29
30
31
32
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'chore', // Build process, CI/CD, dependencies
'docs', // Documentation update
'feat', // New feature
'fix', // Bug fix
'lang', // All updates related to i18n changes
'perf', // Performance improvements
'refactor', // Code refactoring (no feature changes)
'revert', // Reverting changes
'style', // Code style (formatting, missing semicolons, etc.)
'test', // Adding tests
],
],
'scope-empty': [2, 'never'], // Scope must always be present
'subject-case': [
2,
'always',
['sentence-case', 'start-case', 'lower-case'], // Enforce casing
],
'subject-empty': [2, 'never'], // Prevent empty subjects
'header-max-length': [2, 'always', 100], // Max length of the commit message header
'body-leading-blank': [2, 'always'], // Enforce blank line before the body
'footer-leading-blank': [2, 'always'], // Enforce blank line before footer
'body-max-line-length': [2, 'always', 200], // Set max length for body lines
},
};