-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
28 lines (28 loc) · 1.07 KB
/
Copy pathcommitlint.config.js
File metadata and controls
28 lines (28 loc) · 1.07 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
export default {
extends: ['@commitlint/config-conventional'],
// Ignore machine-generated squash-merge commits that don't follow the
// conventional format (in addition to the built-in Merge/revert ignores).
ignores: [(message) => /^\[codex\]/.test(message)],
rules: {
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Formatting, no code change
'refactor', // Code change that neither fixes bug nor adds feature
'perf', // Performance improvement
'test', // Adding or updating tests
'build', // Build system or dependencies
'ci', // CI configuration
'chore', // Other changes that don't modify src or test
'revert' // Revert previous commit
]
],
'subject-case': [0], // Allow any case in subject
'body-max-line-length': [0], // Allow long body lines
'footer-max-line-length': [0] // Allow long footer lines (e.g. NOTE:/trailer paragraphs)
}
};