-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
40 lines (40 loc) · 1004 Bytes
/
commitlint.config.cjs
File metadata and controls
40 lines (40 loc) · 1004 Bytes
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
33
34
35
36
37
38
39
40
/**
* Commitlint configuration for TaskNebula.
*
* Extends @commitlint/config-conventional and customizes the type-enum
* to include repo-specific types (`infra`, `ai`, `integrations`) used
* across the monorepo (see CONTRIBUTING.md and recent git history).
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
// Conventional commits standard types
'feat',
'fix',
'docs',
'style',
'refactor',
'perf',
'test',
'build',
'ci',
'chore',
'revert',
// TaskNebula-specific types
'infra',
'ai',
'integrations',
],
],
// Be lenient on subject case to allow PascalCase product names
'subject-case': [0],
// Allow longer headers/bodies for detailed commits
'header-max-length': [2, 'always', 120],
'body-max-line-length': [0],
'footer-max-line-length': [0],
},
};